vim: Move ftplugins into after/

All of these are meant as additions and should not override vims default
ftplugins.
This commit is contained in:
2020-11-23 02:07:38 +01:00
parent d85607e143
commit 423a786192
6 changed files with 0 additions and 0 deletions

View 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

View File

@@ -0,0 +1 @@
setlocal nospell

View 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

View 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

View File

@@ -0,0 +1,2 @@
" Update resource database automatically.
autocmd BufWritePost * !xrdb %

View File

@@ -0,0 +1,2 @@
" zshOption is a huge regex that leads to massive lags when scrolling
syntax clear zshOption