From 7a98c89f22253177d9f5a0f83c9dbaa297eb54b0 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Mon, 8 Jul 2024 23:24:22 +0800 Subject: Update --- vim/init.vim | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'vim/init.vim') diff --git a/vim/init.vim b/vim/init.vim index f2c7bb3..031a0ed 100644 --- a/vim/init.vim +++ b/vim/init.vim @@ -8,6 +8,7 @@ endif " Get current dir " let s:home = fnamemodify(resolve(expand(':p')), ':h') let s:home = '~/helper/vim' +execute 'cd '.s:home " Load script in current dir " command! -nargs=1 LoadScript exec 'source '.s:home.'/'.'' @@ -15,28 +16,24 @@ let s:home = '~/helper/vim' " Add current dir into runtimepath execute 'set runtimepath+='.s:home - "---------------------------------------------------------------------- -" Locad Modules +" Locad Scripts "---------------------------------------------------------------------- " Basic configuration -source ~/helper/vim/init/basic.vim +source init/basic.vim " Key mappings -source ~/helper/vim/init/keymaps.vim +source init/keymaps.vim " Extra config for different contexts -source ~/helper/vim/init/config.vim - -" Highlight -source ~/helper/vim/init/special_highlight.vim +source init/config.vim if has('nvim') " For neovim - source ~/helper/vim/lazy.lua + source lazy.lua else " For vim - source ~/helper/vim/init/plugins.vim - source ~/helper/vim/init/style.vim + source init/plugins.vim + source init/style.vim endif -- cgit v1.2.3-70-g09d2