git.fiddlerwoaroof.com
Browse code

feat: un-hardcode config directory

Ed L authored on 31/12/2019 05:17:49
Showing 1 changed files
... ...
@@ -7,9 +7,9 @@ if &compatible
7 7
 endif
8 8
 
9 9
 " Required:
10
-set runtimepath+=$HOME/.vim/repos/github.com/Shougo/dein.vim
11
-
12 10
 let vim_config_directory=$HOME.'/.vim'
11
+let &runtimepath.=&runtimepath.','.vim_config_directory.'/repos/github.com/Shougo/dein.vim'
12
+
13 13
 " Required:
14 14
 if dein#load_state(vim_config_directory)
15 15
   call dein#begin(vim_config_directory)
... ...
@@ -17,7 +17,6 @@ if dein#load_state(vim_config_directory)
17 17
   " Let dein manage dein
18 18
   " Required:
19 19
   call dein#add(vim_config_directory.'/repos/github.com/Shougo/dein.vim')
20
-
21 20
 "}}}3
22 21
 " plugins {{{2
23 22
   call dein#add('LnL7/vim-nix')