" See: http://learnvimscriptthehardway.stevelosh.com/chapters/27.html
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" if !isdirectory($VIMHOME) | let $VIMHOME = '/opt/nb/etc/vim' | endif
-" let cur = expend('%:p:h')
let $VIMPLATE_DIR = $VIMHOME . '/templates'
-" NB 16.08.16 let $VIMPLATERC = $HOME.'/.vimplaterc'
-" NB 16.08.16 if !filereadable($VIMPLATERC) | let $VIMPLATERC = '/opt/nb/etc/vim/.vimplaterc' | endif
-let $VIMPLATERC = '/opt/nb/etc/vim/.vimplaterc'
+let $VIMPLATERC = $VIMHOME . '/.vimplaterc'
" We change HOME beacuse vimplate look for HOME/.vimplaterc
let $VIMPLATE = 'env HOME=' . $VIMHOME . ' vimplate' . ' -config '.$VIMPLATERC . ' -dir '.$VIMPLATE_DIR
" ln -s /opt/nb/etc/vimrc ~/.vimrc
"
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+let $VIMHOME = expand('<sfile>:p:h') . '/vim'
+
if filereadable("/etc/vim/vimrc")
source /etc/vim/vimrc
endif
" let $VIMHOME = $HOME.'/.vimZZ'
" if !isdirectory($VIMHOME) | let $VIMHOME = expand("%:p:h") | endif
" if !isdirectory($VIMHOME) | let $VIMHOME = '/opt/nb/etc/vim' | endif
-let $VIMHOME = '/opt/nb/etc/vim'
+" NB 21.09.16 let $VIMHOME = '/opt/nb/etc/vim'
" echo expand("%:p:h")
" runtime! expand("%:p:h") . '/vim/source/*.vim'
" runtime! $VIMHOME . '/source/*.vim'