+ Improved VIMRC, unified vim_config name

This commit is contained in:
ziro 2020-07-13 09:02:15 +07:00
parent 09e9abab2c
commit 9d65e64c3b
5 changed files with 17 additions and 8 deletions

View file

@ -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)

View file

@ -1,6 +1,6 @@
" vim: filetype=vim
" ==============================
" PlugIns
" VIM-Plug - Plugin Manager
" ==============================
" ----- List of used plugins

View file

@ -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