summaryrefslogtreecommitdiff
path: root/libre/vim/parabola.vim
diff options
context:
space:
mode:
Diffstat (limited to 'libre/vim/parabola.vim')
-rw-r--r--libre/vim/parabola.vim8
1 files changed, 6 insertions, 2 deletions
diff --git a/libre/vim/parabola.vim b/libre/vim/parabola.vim
index 62f438f6f..45424d969 100644
--- a/libre/vim/parabola.vim
+++ b/libre/vim/parabola.vim
@@ -1,7 +1,5 @@
" The Parabola GNU/Linux-libre global vimrc - setting only a few sane defaults
"
-" Maintainer: Thomas Dziedzic [gostrc@gmail.com]
-"
" NEVER EDIT THIS FILE, IT'S OVERWRITTEN UPON UPGRADES, GLOBAL CONFIGURATION
" SHALL BE DONE IN /etc/vimrc, USER SPECIFIC CONFIGURATION IN ~/.vimrc
@@ -18,6 +16,12 @@ set ruler " show the cursor position all the time
" These are files we are not likely to want to edit or read.
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.png,.jpg
+" Move the swap file location to protect against CVE-2017-1000382
+if ! isdirectory('~/.vim/swap/')
+ silent! call system('install -dm 700 ~/.vim/swap')
+endif
+set directory=~/.vim/swap/
+
if has('gui_running')
" Make shift-insert work like in Xterm
map <S-Insert> <MiddleMouse>