Write swap files to /tmp

This commit is contained in:
2018-05-24 12:41:17 -07:00
parent 1131455fea
commit 2c1617fba0

4
.vimrc
View File

@@ -44,6 +44,10 @@ endif
" look for tags file along path
set tags=tags;/
" swapfiles to /tmp
set directory=/tmp
" F5 to trim trailing whitespace
map <silent> <F5> :let _s=@/ <Bar> :%s/\s\+$//e <Bar> :let @/=_s <Bar> :nohl <Bar> :unlet _s <CR>