vim: Move language specific bits into ftplugin/
Move stuff for specific languages executed by autocommands into own filetype plugins to keep the vimrc cleaner.
This commit is contained in:
4
.config/vim/ftplugin/gitcommit.vim
Normal file
4
.config/vim/ftplugin/gitcommit.vim
Normal file
@@ -0,0 +1,4 @@
|
||||
" Shorter lines. Subject should be max 50 and body max 72
|
||||
setlocal colorcolumn=50,72
|
||||
" Spell checking always enabled
|
||||
setlocal spell spelllang=en_us
|
||||
2
.config/vim/ftplugin/zsh.vim
Normal file
2
.config/vim/ftplugin/zsh.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
" zshOption is a huge regex that leads to massive lags when scrolling
|
||||
syntax clear zshOption
|
||||
Reference in New Issue
Block a user