aboutsummaryrefslogtreecommitdiffhomepage
path: root/init.vim
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-05-10 14:51:34 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-05-10 14:51:34 +0800
commitb214914e1114d16b77d97c5e58724a32587f319a (patch)
treed824727e425595ecd052df8d83222c3aff0d2ef2 /init.vim
parentd90a77e42d5adf73bde81f519669a265f1d53b1d (diff)
Update
Diffstat (limited to 'init.vim')
-rw-r--r--init.vim44
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
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 = '~/.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
16execute 'set runtimepath+='.s:home
17
18
19"----------------------------------------------------------------------
20" Locad Modules
21"----------------------------------------------------------------------
22
23" Basic configuration
24source ~/.vim/vim-init/init/init-basic.vim
25
26" Key mappings
27source ~/.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
33source ~/.vim/vim-init/init/init-config.vim
34
35" Set tabsize
36source ~/.vim/vim-init/init/init-tabsize.vim
37
38if has('nvim')
39 " Neovim
40 source ~/.config/nvim/nvim.lua
41else
42 " Plugin
43 source ~/.vim/vim-init/init/init-plugins.vim
44endif