aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/gitcommit.vim
AgeCommit message (Collapse)AuthorFilesLines
2018-11-29Remove double-key mapping shortcutsTom Ryder1-4/+0
I never use these anyway; I'm firmly in the habit of using underscores to represent the current line these days.
2018-11-29Remove boilerplate after/ftplugin load guardsTom Ryder1-5/+0
I'm likely going to move away from Vim 6.0 support, at least for all of this filetype stuff. We will keep the one filetype load guard we actually need, which is the HTML one, to stop plugins like markdown.vim from loading it.
2018-11-29Restore value of 'colorcolumn' after ft=gitcommitTom Ryder1-0/+1
2018-11-29Wrap Vim gitcommit autocmd clear in :executeTom Ryder1-1/+1
Noticed that my b:undo_ftplugin script for this filetype was only getting halfway through its work, and stopping at this command. From `:help autocmd`: > Note: The ":autocmd" command can only be followed by another command when the > '|' appears before {cmd}. This works: > :augroup mine | au! BufRead | augroup END > But this sees "augroup" as part of the defined command: > :augroup mine | au! BufRead * | augroup END > :augroup mine | au BufRead * set tw=70 | augroup END > Instead you can put the group name into the command: > :au! mine BufRead * > :au mine BufRead * set tw=70 > Or use :execute: > :augroup mine | exe "au! BufRead *" | augroup END > :augroup mine | exe "au BufRead * set tw=70" | augroup END
2018-11-26Correct indentation in a few vim/after scriptsTom Ryder1-1/+1
2018-08-14Use consistent format for local leader mappingsTom Ryder1-8/+16
2018-07-16Add reformatting analogue to quote mappingsTom Ryder1-0/+6
2018-07-15Add missing <buffer> to mail quote unmapsTom Ryder1-3/+3
2018-07-15Check for +autocmd before gitcommit ftplugin hooksTom Ryder1-1/+1
2018-07-14Adaptive 'colorcolumn' for gitcommit filetypeTom Ryder1-0/+10
2018-07-14Add mail quote maps for gitcommit and markdownTom Ryder1-0/+13
2018-07-10Overhaul after/ftpluginTom Ryder1-4/+2
Use .= operator to append to b:undo_ftplugin, as we're requiring Vim 7.0 or later everywhere here anyway. Also remove &compatible where we don't need line breaks.
2018-07-09Overhaul ftplugin check, lint, tidyTom Ryder1-7/+3
- Set 'equalprg' for HTML and Perl - Discard filter#Stable() - Set default :compiler for all applicable filetypes - Change local leader mappings for Perl and shell script merely to set :compiler, rather than running it - Bind global leader mapping for running :lmake! - Bind global leader mappings for applying 'equalprg' and 'formatprg' to the whole buffer, using a new autoloaded helper function vimrc#Anchor() to avoid the cursor jumping around
2018-07-08Overhaul base after-ftpluginsTom Ryder1-13/+9
Mostly to simplify them--remove a lot of the load-guard cruft.
2018-07-07Wrap comments with `gq` in Git commit messagesTom Ryder1-1/+1
I like quoting things in Git commit messages, as if they were mail messages. This was supposed to be fixed in commit a5b8367, but I didn't add all the necessary flags.
2018-07-02Add 'c' flag to 'formatoptions' for gitcommitTom Ryder1-1/+1
This is so that quotes wrap pleasantly.
2018-07-01Make Vim ftplugin preamble consistent with pluginsTom Ryder1-1/+4
2018-06-30Conform all after/ftplugin filesTom Ryder1-3/+6
2018-06-30Join some b:undo_ftplugin addendaTom Ryder1-2/+1
2018-06-30Refactor ftplugins into single filesTom Ryder1-0/+14
Each thereby effectively becomes its own .vimrc for that type.