From 23036deb6fa7a6b758fbcd737ca06f02b32ef2d3 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Fri, 26 Apr 2019 14:57:34 +0200 Subject: [PATCH] .nvim for non config files --- init.vim | 4 ++-- zsh/bin/vim-recover | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/init.vim b/init.vim index 29052a4..5093a1a 100644 --- a/init.vim +++ b/init.vim @@ -119,14 +119,14 @@ let g:WebDevIconsNerdTreeGitPluginForceVAlign = 1 " BACKUPS ###########################################################{{{ set dir=$HOME/.nvim/swp// -autocmd BufWritePost * :silent execute ':w! ' ."$HOME/.config/nvim/backups/" . substitute(escape(substitute(expand('%:p'), "/", "%", "g"), "%"), ' ', '\\ ', 'g') +autocmd BufWritePost * :silent execute ':w! ' ."$HOME/.nvim/backups/" . substitute(escape(substitute(expand('%:p'), "/", "%", "g"), "%"), ' ', '\\ ', 'g') if exists('+undofile') set undofile set undolevels=1000 set undoreload=10000 if exists('+undodir') - set undodir=$HOME/.config/nvim/undo + set undodir=$HOME/.nvim/undo endif endif " }}} diff --git a/zsh/bin/vim-recover b/zsh/bin/vim-recover index 63fc3ac..b57c260 100755 --- a/zsh/bin/vim-recover +++ b/zsh/bin/vim-recover @@ -6,7 +6,7 @@ if [ -f $1 ]; then return 1 fi -backup_path=~/.config/nvim/backups/`echo $PWD/$1 | tr '/' '%'` +backup_path=~/.nvim/backups/`echo $PWD/$1 | tr '/' '%'` if [ ! -f "$backup_path" ]; then echo >&2 Backup not found...