From b728e3eb1e5be9fa50c6e3a5c480ef0b0bafe26d Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sat, 12 Aug 2023 16:26:37 +0800 Subject: Update --- init.vim | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 init.vim (limited to 'init.vim') diff --git a/init.vim b/init.vim new file mode 100644 index 0000000..6b31c8e --- /dev/null +++ b/init.vim @@ -0,0 +1,49 @@ +" Avoid load this script twice +if get(s:, 'loaded', 0) != 0 + finish +else + let s:loaded = 1 +endif + +" Get current dir +" let s:home = fnamemodify(resolve(expand(':p')), ':h') +let s:home = '~/.vim/vim-init' + +" Load script in current dir +" command! -nargs=1 LoadScript exec 'so '.s:home.'/'.'' + +" Add current dir into runtimepath +execute 'set runtimepath+='.s:home + + +"---------------------------------------------------------------------- +" Locad Modules +"---------------------------------------------------------------------- + +" Basic configuration +source ~/.vim/vim-init/init/init-basic.vim + +" Key mappings +source ~/.vim/vim-init/init/init-keymaps.vim + +" UI +" source ~/.vim/vim-init/init/init-style.vim + +" Extra config for different contexts +" source ~/.vim/vim-init/init/init-config.vim + +" 设定 tabsize +" source ~/.vim/vim-init/init/init-tabsize.vim + +" Plugins + +" Neovim +if has('nvim') + source ~/.config/nvim/nvim.lua +else + source ~/.vim/vim-init/init/init-plugins.vim +endif + +" Set UI theme +colorscheme desert +highlight MatchParen cterm=bold ctermbg=none ctermfg=magenta -- cgit v1.2.3-70-g09d2