From 9d65e64c3b519d38cd9d09bb9cc6579f1a07544e Mon Sep 17 00:00:00 2001 From: ziro Date: Mon, 13 Jul 2020 09:02:15 +0700 Subject: [PATCH] + Improved VIMRC, unified vim_config name --- .config/vim/{nix => vim_nix} | 4 ++++ .config/vim/{plugins => vim_plug} | 2 +- .config/vim/{universal => vim_uni} | 0 .config/vim/{windows => vim_win} | 0 .config/vim/vimrc | 19 ++++++++++++------- 5 files changed, 17 insertions(+), 8 deletions(-) rename .config/vim/{nix => vim_nix} (81%) rename .config/vim/{plugins => vim_plug} (98%) rename .config/vim/{universal => vim_uni} (100%) rename .config/vim/{windows => vim_win} (100%) diff --git a/.config/vim/nix b/.config/vim/vim_nix similarity index 81% rename from .config/vim/nix rename to .config/vim/vim_nix index 4cf164d..aa84ccd 100644 --- a/.config/vim/nix +++ b/.config/vim/vim_nix @@ -36,6 +36,10 @@ autocmd FileType tex command! -nargs=0 Lw w !pdflatex % > /dev/null augroup myvimrc au! au BufWritePost vimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif + au BufWritePost vim_nix so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif + au BufWritePost vim_plug so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif + au BufWritePost vim_uni so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif + au BufWritePost vim_win so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif augroup END " ----- Install plug (Plugin Manager) diff --git a/.config/vim/plugins b/.config/vim/vim_plug similarity index 98% rename from .config/vim/plugins rename to .config/vim/vim_plug index 15204d5..f016662 100644 --- a/.config/vim/plugins +++ b/.config/vim/vim_plug @@ -1,6 +1,6 @@ " vim: filetype=vim " ============================== -" PlugIns +" VIM-Plug - Plugin Manager " ============================== " ----- List of used plugins diff --git a/.config/vim/universal b/.config/vim/vim_uni similarity index 100% rename from .config/vim/universal rename to .config/vim/vim_uni diff --git a/.config/vim/windows b/.config/vim/vim_win similarity index 100% rename from .config/vim/windows rename to .config/vim/vim_win diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 6c27df5..01dd701 100755 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -16,20 +16,25 @@ " 'V/' ++++++ " ++ " ============================== +" null2264's VIMRC +" ============================== -" ----- Mapping/Config -" Universal -so ~/.config/vim/universal -" so C:\_config\vim\universal +" ----- Sourcing Mapping/Config " Automatically source config for the correct OS +" NOTE: By default the directory of Windows config will be located on +" "C:\_config\vim" if has('win64') || has('win32') || has('win16') + " Universal + so C:\_config\vim\vim_uni " Windows - " so C:\_config\vim\windows + so C:\_config\vim\vim_win else + " Universal + so ~/.config/vim/vim_uni " *nix (Linux/Mac) - so ~/.config/vim/nix + so ~/.config/vim/vim_nix endif " ----- PlugIns -source ~/.config/vim/plugins +source ~/.config/vim/vim_plug