diff options
Diffstat (limited to 'vim')
-rw-r--r-- | vim/vimrc | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -162,6 +162,18 @@ if has('spell') nnoremap <leader>s :setlocal spell!<CR> 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 +endif + " Substitution nnoremap & :&&<CR> xnoremap & :&&<CR> |