From effe141a61e1b48adf0b4472a58f716f97a32b7b Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 14 Nov 2024 15:40:53 +0800 Subject: Update --- vim/init.vim | 38 +------------------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) mode change 100644 => 120000 vim/init.vim (limited to 'vim/init.vim') diff --git a/vim/init.vim b/vim/init.vim deleted file mode 100644 index aed0c41..0000000 --- a/vim/init.vim +++ /dev/null @@ -1,37 +0,0 @@ -" 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 = '~/helper/vim' - -" Add current dir into runtimepath -execute 'set runtimepath+='.s:home - -" Load scripts in home -command! -nargs=1 LoadScript exec 'source '.s:home.'/'.'' - -if $fullrc == 'false' - finish -endif - -" Gerneral scripts -LoadScript init/basic.vim " Basic configuration -LoadScript init/keymaps.vim " Key mappings -LoadScript init/config.vim " Extra config for different contexts - -" Different scripts for nvim and vim -if has('nvim') - LoadScript mini.lua -else - LoadScript init/plugins.vim - LoadScript init/style.vim -endif - -LoadScript init/highlight.vim - -silent! source ~/.projects.vim diff --git a/vim/init.vim b/vim/init.vim new file mode 120000 index 0000000..c9a3c9c --- /dev/null +++ b/vim/init.vim @@ -0,0 +1 @@ +vimrc \ No newline at end of file -- cgit v1.2.3-70-g09d2