aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc44
1 files changed, 44 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
new file mode 100644
index 0000000..78a96b1
--- /dev/null
+++ b/vim/vimrc
@@ -0,0 +1,44 @@
1" Avoid load this script twice
2if get(s:, 'loaded', 0) != 0
3 finish
4else
5 let s:loaded = 1
6endif
7
8" Get current dir
9" let s:home = fnamemodify(resolve(expand('<sfile>:p')), ':h')
10let s:home = '~/helper/vim'
11
12" Load script in current dir
13" command! -nargs=1 LoadScript exec 'source '.s:home.'/'.'<args>'
14
15" Add current dir into runtimepath
16execute 'set runtimepath+='.s:home
17
18
19"----------------------------------------------------------------------
20" Locad Modules
21"----------------------------------------------------------------------
22
23" Basic configuration
24source ~/helper/vim/init/basic.vim
25
26" Key mappings
27source ~/helper/vim/init/keymaps.vim
28
29" UI
30source ~/helper/vim/init/style.vim
31
32" Extra config for different contexts
33source ~/helper/vim/init/config.vim
34
35" Set tabsize
36source ~/helper/vim/init/tabsize.vim
37
38if has('nvim')
39 " For nvim
40 source ~/.config/nvim/lazy.lua
41else
42 " Plugin
43 source ~/helper/vim/init/plugins.vim
44endif