On , I learnt ...
That hub
clashes with vim-polyglot
I use Github’s hub
library to create pull requests with a command
similar to:
$ hub pull-request --edit ...
The --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
hub sets 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.