aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin/gitcommit.vim
AgeCommit message (Collapse)Author
2019-06-05ftplugin/gitcommit.vim: Turn on 'formatoptions' `n`Teddy Wing
This formats numbered lists so that they wrap to the beginning of the text, instead of being flush with the number. Before: 1. A list that goes beyond the text width and wraps to the number. After: 1. A list that goes beyond the text width and wraps to the text. Thanks to this blog post from Edward Yang for prompting me to read the |fo-table| help again more closely: http://blog.ezyang.com/2010/03/vim-textwidth/
2019-05-17ftplugin/gitcommit.vim: Turn on spell checking in Git commitsTeddy Wing
2014-11-06ftplugin/gitcommit.vim: Don't start wrapped lines with '*'Teddy Wing
When making bulleted lists in git commits, I normally use '*' as the bullet character. When my text wrapped from the textwidth=72 setting for gitcommit-type files, the line following the start of a bullet would begin with a bullet. Obviously this is the wrong behaviour since I'm continuing a list item, not of starting a new one. This frustrated me to no end whenever I wrote a list in a git commit, constantly having to `0r<space>` to fix the extra asterisks. I finally decided to solve this problem once and for all. Read up a little on: * :h formatoptions * :h fo-table * :h format-comments The last of which gave me what I needed to fix the problem. Now asterisks in git commits behave as list bullets.
2014-05-23ftplugin/gitcommit: set textwidth=72Teddy Wing
Actually enjoyed the textwidth setting of the default gitcommit ftplugin so bringing that over to my custom one.
2014-05-23vimrc: move gitcommit settings to ftpluginTeddy Wing
Move gitcommit indentation settings from vimrc to an ftplugin file. Keeps things more organised and makes for a cleaner vimrc.