aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/nvim/init.vim
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-06-24 16:34:51 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-06-24 16:34:51 +0800
commit2a1645ae9593114514a7f28fa6d9109d1820375d (patch)
treebab2ac0a019ca9af961a04b2a58f0bac3d49bdeb /vim/nvim/init.vim
parentfdb53f590cef5499b14322d22fee47722b135626 (diff)
Update
Diffstat (limited to 'vim/nvim/init.vim')
-rw-r--r--vim/nvim/init.vim44
1 files changed, 44 insertions, 0 deletions
diff --git a/vim/nvim/init.vim b/vim/nvim/init.vim
new file mode 100644
index 0000000..20a1c74
--- /dev/null
+++ b/vim/nvim/init.vim
@@ -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" Extra config for different contexts
30source ~/helper/vim/init/config.vim
31
32" Set tabsize
33source ~/helper/vim/init/tabsize.vim
34
35if has('nvim')
36 " For neovim
37 source ~/.config/nvim/lazy.lua
38else
39 " For vim
40 source ~/helper/vim/init/plugins.vim
41 source ~/helper/vim/init/style.vim
42endif
43
44source ~/helper/vim/init/special_highlight.vim