diff options
Diffstat (limited to 'vim/init.vim')
-rw-r--r-- | vim/init.vim | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/vim/init.vim b/vim/init.vim index f2c7bb3..031a0ed 100644 --- a/vim/init.vim +++ b/vim/init.vim | |||
@@ -8,6 +8,7 @@ endif | |||
8 | " Get current dir | 8 | " Get current dir |
9 | " let s:home = fnamemodify(resolve(expand('<sfile>:p')), ':h') | 9 | " let s:home = fnamemodify(resolve(expand('<sfile>:p')), ':h') |
10 | let s:home = '~/helper/vim' | 10 | let s:home = '~/helper/vim' |
11 | execute 'cd '.s:home | ||
11 | 12 | ||
12 | " Load script in current dir | 13 | " Load script in current dir |
13 | " command! -nargs=1 LoadScript exec 'source '.s:home.'/'.'<args>' | 14 | " command! -nargs=1 LoadScript exec 'source '.s:home.'/'.'<args>' |
@@ -15,28 +16,24 @@ let s:home = '~/helper/vim' | |||
15 | " Add current dir into runtimepath | 16 | " Add current dir into runtimepath |
16 | execute 'set runtimepath+='.s:home | 17 | execute 'set runtimepath+='.s:home |
17 | 18 | ||
18 | |||
19 | "---------------------------------------------------------------------- | 19 | "---------------------------------------------------------------------- |
20 | " Locad Modules | 20 | " Locad Scripts |
21 | "---------------------------------------------------------------------- | 21 | "---------------------------------------------------------------------- |
22 | 22 | ||
23 | " Basic configuration | 23 | " Basic configuration |
24 | source ~/helper/vim/init/basic.vim | 24 | source init/basic.vim |
25 | 25 | ||
26 | " Key mappings | 26 | " Key mappings |
27 | source ~/helper/vim/init/keymaps.vim | 27 | source init/keymaps.vim |
28 | 28 | ||
29 | " Extra config for different contexts | 29 | " Extra config for different contexts |
30 | source ~/helper/vim/init/config.vim | 30 | source init/config.vim |
31 | |||
32 | " Highlight | ||
33 | source ~/helper/vim/init/special_highlight.vim | ||
34 | 31 | ||
35 | if has('nvim') | 32 | if has('nvim') |
36 | " For neovim | 33 | " For neovim |
37 | source ~/helper/vim/lazy.lua | 34 | source lazy.lua |
38 | else | 35 | else |
39 | " For vim | 36 | " For vim |
40 | source ~/helper/vim/init/plugins.vim | 37 | source init/plugins.vim |
41 | source ~/helper/vim/init/style.vim | 38 | source init/style.vim |
42 | endif | 39 | endif |