commit 6bdc41b531c5e4a2d2ecd3fdb727e926e6fcc32e (patch)
parent 9e2d69bbeab971f3b2b59ae1e64f56c552bc578f
Author: Alex Karle <alex@alexkarle.com>
Date: Fri, 2 Jul 2021 23:34:06 -0400
vim: Condense settings into top section
Just easier to read the file
Diffstat:
1 file changed, 7 insertions(+), 12 deletions(-)
diff --git a/.vim/improved.vim b/.vim/improved.vim
@@ -1,8 +1,13 @@
" .vim/improved.vim -- putting the IM in VIM
" GENERAL EDITOR SETTINGS {{{
-" Line numbers on -- helpful for debugging, not needed in `vi`
-set number
+set number " Line numbers
+set undodir=~/.vim/undo/ " Persistent undo
+set undofile " Do indeed create said files
+set undolevels=1000 " Max # changes that can be undone
+set undoreload=10000 " Saves undofile on reload (:e) if < 10k LOC
+set backupdir=~/.vim/swp,. " Backup files in ~/.vim/swp
+set directory=~/.vim/swp,. " Swap files in ~/.vim/swp
" Faster grepping! (use ripgrep if available for :grep and :FZF)
if executable('rg')
@@ -10,16 +15,6 @@ if executable('rg')
set grepformat=%f:%l:%c:%m,%f:%l:%m
let $FZF_DEFAULT_COMMAND = 'rg --files --hidden --glob "!.git/*"'
endif
-
-" Persistent undo
-set undodir=~/.vim/undo/
-set undofile " Do indeed create said files
-set undolevels=1000 " Max # changes that can be undone
-set undoreload=10000 " Saves undofile on reload (:e) if < 10k LOC
-
-" Use ~/.vim/swp if avail (else .) for backup and swp files respectively
-set backupdir=~/.vim/swp,.
-set directory=~/.vim/swp,.
" }}}
" PLUGIN RELATED SETTINGS {{{