aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/init.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/init.vim')
-rw-r--r--vim/init.vim19
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')
10let s:home = '~/helper/vim' 10let s:home = '~/helper/vim'
11execute '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
16execute 'set runtimepath+='.s:home 17execute '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
24source ~/helper/vim/init/basic.vim 24source init/basic.vim
25 25
26" Key mappings 26" Key mappings
27source ~/helper/vim/init/keymaps.vim 27source init/keymaps.vim
28 28
29" Extra config for different contexts 29" Extra config for different contexts
30source ~/helper/vim/init/config.vim 30source init/config.vim
31
32" Highlight
33source ~/helper/vim/init/special_highlight.vim
34 31
35if has('nvim') 32if has('nvim')
36 " For neovim 33 " For neovim
37 source ~/helper/vim/lazy.lua 34 source lazy.lua
38else 35else
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
42endif 39endif