aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-07-18 21:03:09 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-07-18 21:03:09 +1200
commit2bf15b35b23214860b4817e62f726039ffe37589 (patch)
treed2bfe0d0f6a30c74980c07a0ae489ce1e218a5e0 /vim/vimrc
parentExplicitly set nospell, add spelllang switches (diff)
downloaddotfiles-2bf15b35b23214860b4817e62f726039ffe37589.tar.gz
dotfiles-2bf15b35b23214860b4817e62f726039ffe37589.zip
Merge nested if structures for viminfo control
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc16
1 files changed, 7 insertions, 9 deletions
diff --git a/vim/vimrc b/vim/vimrc
index ed0df32d..6c042d1e 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -166,15 +166,13 @@ if has('spell')
endif
" State
-if has('viminfo')
- if has('autocmd')
- augroup viminfoskip
- autocmd!
- silent! autocmd BufNewFile,BufReadPre
- \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
- \ setlocal viminfo=
- augroup END
- endif
+if has('viminfo') && has('autocmd')
+ augroup viminfoskip
+ autocmd!
+ silent! autocmd BufNewFile,BufReadPre
+ \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
+ \ setlocal viminfo=
+ augroup END
endif
" Substitution