don't write swapfile on mounted media in /run/media/

This commit is contained in:
Karsten Hopp 2013-08-13 13:06:59 +02:00
parent b656c4c03f
commit 8c47af8868

2
vimrc
View File

@ -23,7 +23,7 @@ if has("autocmd")
\ exe "normal! g'\"" |
\ endif
" don't write swapfile on most commonly used directories for NFS mounts or USB sticks
autocmd BufNewFile,BufReadPre /media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
" start with spec file template
autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
augroup END