diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-05-10 14:51:34 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-05-10 14:51:34 +0800 |
commit | b214914e1114d16b77d97c5e58724a32587f319a (patch) | |
tree | d824727e425595ecd052df8d83222c3aff0d2ef2 /init.vim | |
parent | d90a77e42d5adf73bde81f519669a265f1d53b1d (diff) |
Update
Diffstat (limited to 'init.vim')
-rw-r--r-- | init.vim | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/init.vim b/init.vim deleted file mode 100644 index c5859b5..0000000 --- a/init.vim +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | " Avoid load this script twice | ||
2 | if get(s:, 'loaded', 0) != 0 | ||
3 | finish | ||
4 | else | ||
5 | let s:loaded = 1 | ||
6 | endif | ||
7 | |||
8 | " Get current dir | ||
9 | " let s:home = fnamemodify(resolve(expand('<sfile>:p')), ':h') | ||
10 | let s:home = '~/.vim/vim-init' | ||
11 | |||
12 | " Load script in current dir | ||
13 | " command! -nargs=1 LoadScript exec 'source '.s:home.'/'.'<args>' | ||
14 | |||
15 | " Add current dir into runtimepath | ||
16 | execute 'set runtimepath+='.s:home | ||
17 | |||
18 | |||
19 | "---------------------------------------------------------------------- | ||
20 | " Locad Modules | ||
21 | "---------------------------------------------------------------------- | ||
22 | |||
23 | " Basic configuration | ||
24 | source ~/.vim/vim-init/init/init-basic.vim | ||
25 | |||
26 | " Key mappings | ||
27 | source ~/.vim/vim-init/init/init-keymaps.vim | ||
28 | |||
29 | " UI | ||
30 | " source ~/.vim/vim-init/init/init-style.vim | ||
31 | |||
32 | " Extra config for different contexts | ||
33 | source ~/.vim/vim-init/init/init-config.vim | ||
34 | |||
35 | " Set tabsize | ||
36 | source ~/.vim/vim-init/init/init-tabsize.vim | ||
37 | |||
38 | if has('nvim') | ||
39 | " Neovim | ||
40 | source ~/.config/nvim/nvim.lua | ||
41 | else | ||
42 | " Plugin | ||
43 | source ~/.vim/vim-init/init/init-plugins.vim | ||
44 | endif | ||