From 47ecc7c8e5d4c18a71d6603ed3aec032830daf7d Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 21 Sep 2016 16:39:45 +0100 Subject: [PATCH] vim relative path --- etc/vim/source/functions.vim | 1 + etc/vimrc | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/etc/vim/source/functions.vim b/etc/vim/source/functions.vim index 35767cd9..a616a385 100644 --- a/etc/vim/source/functions.vim +++ b/etc/vim/source/functions.vim @@ -4,6 +4,7 @@ " See: http://learnvimscriptthehardway.stevelosh.com/chapters/27.html " """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +let $VIMHOME = expand(':p:h') . '/vim' let $VIMPLATE_DIR = $VIMHOME . '/templates' diff --git a/etc/vimrc b/etc/vimrc index f7cdf16c..915bad90 100644 --- a/etc/vimrc +++ b/etc/vimrc @@ -4,8 +4,6 @@ " ln -s /opt/nb/etc/vimrc ~/.vimrc " """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -let $VIMHOME = expand(':p:h') . '/vim' - if filereadable("/etc/vim/vimrc") source /etc/vim/vimrc endif -- 2.47.3