From a2ef34f38bf5c5a3a6c01d69485059aa5fb277d9 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Thu, 22 Dec 2011 11:21:49 +0100 Subject: .vimrc: Centralize backups, swapfiles and undo history --- .vimrc | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3