" Extra configuration for Git commit messages if &filetype !=# 'gitcommit' || v:version < 700 finish endif " Make angle brackets behave like mail quotes setlocal comments+=n:> setlocal formatoptions+=coqr let b:undo_ftplugin .= '|setlocal comments< formatoptions<' " Stop here if the user doesn't want ftplugin mappings if exists('g:no_plugin_maps') || exists('g:no_gitcommit_maps') finish endif " Mail quote mappings nnoremap q quote#Quote() nnoremap qq quote#Quote().'_' xnoremap q quote#Quote() let b:undo_ftplugin .= '|nunmap q' \ . '|nunmap qq' \ . '|xunmap q'