From 8c47af886818f843efcdda80d971d84a73bace05 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Aug 13 2013 11:06:59 +0000 Subject: don't write swapfile on mounted media in /run/media/ --- diff --git a/vimrc b/vimrc index 6707ae4..cf66061 100644 --- a/vimrc +++ b/vimrc @@ -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