diff options
Diffstat (limited to 'vim/config/spell.vim')
-rw-r--r-- | vim/config/spell.vim | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/vim/config/spell.vim b/vim/config/spell.vim index 70471237..c34a6cc3 100644 --- a/vim/config/spell.vim +++ b/vim/config/spell.vim @@ -12,15 +12,3 @@ if has('spell') nnoremap <leader>u :setlocal spelllang=en_us<CR> nnoremap <leader>z :setlocal spelllang=en_nz<CR> endif - -" Don't keep .viminfo information for files in temporary directories or shared -" memory filesystems; this is because they're used as scratch spaces for tools -" like sudoedit(8) and pass(1) and hence could present a security problem -if has('viminfo') && has('autocmd') - augroup viminfoskip - autocmd! - silent! autocmd BufNewFile,BufReadPre - \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/* - \ setlocal viminfo= - augroup END -endif |