I use Github’s
hub library to create pull requests with a command
$ hub pull-request --edit ...
--edit option instructs
hub to open a
.git/PULLREQ_EDITMSG file in Vim
where the pull request title and description can be edited.
Unlike commit messages, pull request descriptions shouldn’t be hard-wrapped, and
textwidth=0 when opening Vim to achieve this.
However this wasn’t in effect for me as it clashed with
vim-polyglot with sets
textwidth=72 as part of its
ftcommit file-type plugin.
You can see which file last set this option with:
:verbose set textwidth?
See my “Debugging Vim by example” blog post for more tips on debugging minor Vim issues like this one.