diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-07-18 21:03:09 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-07-18 21:03:09 +1200 |
commit | 2bf15b35b23214860b4817e62f726039ffe37589 (patch) | |
tree | d2bfe0d0f6a30c74980c07a0ae489ce1e218a5e0 | |
parent | Explicitly set nospell, add spelllang switches (diff) | |
download | dotfiles-2bf15b35b23214860b4817e62f726039ffe37589.tar.gz dotfiles-2bf15b35b23214860b4817e62f726039ffe37589.zip |
Merge nested if structures for viminfo control
-rw-r--r-- | vim/vimrc | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -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 |