aboutsummaryrefslogtreecommitdiff
path: root/vim/config
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-30 16:51:16 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-30 16:51:16 +1300
commitbef85e735c0c6d1c71d79f6ff20b8d5f0ce4b0c5 (patch)
tree7b07925c9e5062fa4caaa0be58173f493242bf56 /vim/config
parentCorrect comment typo (diff)
downloaddotfiles-bef85e735c0c6d1c71d79f6ff20b8d5f0ce4b0c5.tar.gz
dotfiles-bef85e735c0c6d1c71d79f6ff20b8d5f0ce4b0c5.zip
Use conventional indent for continued VimL lines
I had four spaces, but with a 'shiftwidth' of 2, 6 is the conventional value. From :help ft-vim-indent: >For indenting Vim scripts there is one variable that specifies the >amount of indent for a continuation line, a line that starts with a >backslash: > > :let g:vim_indent_cont = &sw * 3 > >Three times shiftwidth is the default value.
Diffstat (limited to 'vim/config')
-rw-r--r--vim/config/spell.vim4
-rw-r--r--vim/config/swapfile.vim4
-rw-r--r--vim/config/undo.vim4
3 files changed, 6 insertions, 6 deletions
diff --git a/vim/config/spell.vim b/vim/config/spell.vim
index 50b3f657..70471237 100644
--- a/vim/config/spell.vim
+++ b/vim/config/spell.vim
@@ -20,7 +20,7 @@ if has('viminfo') && has('autocmd')
augroup viminfoskip
autocmd!
silent! autocmd BufNewFile,BufReadPre
- \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
- \ setlocal viminfo=
+ \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
+ \ setlocal viminfo=
augroup END
endif
diff --git a/vim/config/swapfile.vim b/vim/config/swapfile.vim
index 39e1ab95..d5534d92 100644
--- a/vim/config/swapfile.vim
+++ b/vim/config/swapfile.vim
@@ -21,8 +21,8 @@ if !strlen($SUDO_USER) && has('unix')
augroup swapskip
autocmd!
silent! autocmd BufNewFile,BufReadPre
- \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
- \ setlocal noswapfile
+ \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
+ \ setlocal noswapfile
augroup END
endif
diff --git a/vim/config/undo.vim b/vim/config/undo.vim
index 3df06d80..68dde131 100644
--- a/vim/config/undo.vim
+++ b/vim/config/undo.vim
@@ -25,8 +25,8 @@ if !strlen($SUDO_USER) && has('unix') && has('persistent_undo')
augroup undoskip
autocmd!
silent! autocmd BufWritePre
- \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
- \ setlocal noundofile
+ \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
+ \ setlocal noundofile
augroup END
endif
endif