From 1e170727cc0f71b1e0476422f994ae57db19a2b5 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 25 Nov 2015 05:19:30 +0100 Subject: nvim: init.vim: Don't write backups to the current dir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's fucking idiotic. :| Signed-off-by: Johannes Löthberg --- nvim/init.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/nvim/init.vim b/nvim/init.vim index 06b8478..354f386 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -44,6 +44,7 @@ set showcmd " Show partial command in the last line of the screen set scrolloff=1 " Minimum number of screen lines under/above the cursor set linebreak " Don’t wrap lines in the middle of a word set spelllang=en_us +set backupdir=$XDG_DATA_HOME/nvim/backup " Don't write backups in current dir " Use space as a leader map -- cgit v1.2.3-70-g09d2