aboutsummaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2011-12-22 11:21:49 +0100
committerMathias Bynens <mathias@qiwi.be>2011-12-22 11:21:49 +0100
commita2ef34f38bf5c5a3a6c01d69485059aa5fb277d9 (patch)
treeb36ad35e0e834f0b870fd3b46fe6718fbbaa006f /.vimrc
parent779de13da7a90f2eb7dd31df6f51a0c2637d6f78 (diff)
downloaddotfiles-a2ef34f38bf5c5a3a6c01d69485059aa5fb277d9.tar.gz
dotfiles-a2ef34f38bf5c5a3a6c01d69485059aa5fb277d9.tar.bz2
dotfiles-a2ef34f38bf5c5a3a6c01d69485059aa5fb277d9.zip
.vimrc: Centralize backups, swapfiles and undo history
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 472aaa3..bc69bc6 100644
--- a/.vimrc
+++ b/.vimrc
@@ -15,6 +15,10 @@ let mapleader=","
" Don’t add empty newlines at the end of files
set binary
set noeol
+" Centralize backups, swapfiles and undo history
+set backupdir=~/.vim/backups
+set directory=~/.vim/swaps
+set undodir=~/.vim/undo
" Enable line numbers
set number