vim: Move ftplugins into after/
All of these are meant as additions and should not override vims default ftplugins.
This commit is contained in:
5
.config/vim/after/ftplugin/gitcommit.vim
Normal file
5
.config/vim/after/ftplugin/gitcommit.vim
Normal file
@@ -0,0 +1,5 @@
|
||||
" Shorter lines. Subject should be max 50 and body max 72
|
||||
setlocal colorcolumn=50,72
|
||||
setlocal textwidth=72
|
||||
" Spell checking always enabled
|
||||
setlocal spell spelllang=en
|
||||
1
.config/vim/after/ftplugin/man.vim
Normal file
1
.config/vim/after/ftplugin/man.vim
Normal file
@@ -0,0 +1 @@
|
||||
setlocal nospell
|
||||
6
.config/vim/after/ftplugin/python.vim
Normal file
6
.config/vim/after/ftplugin/python.vim
Normal file
@@ -0,0 +1,6 @@
|
||||
" Use 4 spaces for indentation
|
||||
setlocal tabstop=4
|
||||
setlocal shiftwidth=0
|
||||
setlocal expandtab
|
||||
" Delete all 4 spaces when pressing backspace
|
||||
setlocal smarttab
|
||||
6
.config/vim/after/ftplugin/vim.vim
Normal file
6
.config/vim/after/ftplugin/vim.vim
Normal file
@@ -0,0 +1,6 @@
|
||||
" Source config upon saving vim file.
|
||||
" Group to avoid "exponential" reloading. See:
|
||||
" https://stackoverflow.com/questions/2400264/is-it-possible-to-apply-vim-configurations-without-restarting
|
||||
augroup vimrc_reload
|
||||
autocmd! BufWritePost * source $MYVIMRC | echom "Reloaded" | redraw
|
||||
augroup END
|
||||
2
.config/vim/after/ftplugin/xdefaults.vim
Normal file
2
.config/vim/after/ftplugin/xdefaults.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
" Update resource database automatically.
|
||||
autocmd BufWritePost * !xrdb %
|
||||
2
.config/vim/after/ftplugin/zsh.vim
Normal file
2
.config/vim/after/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