+ Improved VIMRC, unified vim_config name
This commit is contained in:
parent
09e9abab2c
commit
9d65e64c3b
5 changed files with 17 additions and 8 deletions
|
@ -36,6 +36,10 @@ autocmd FileType tex command! -nargs=0 Lw w !pdflatex % > /dev/null
|
||||||
augroup myvimrc
|
augroup myvimrc
|
||||||
au!
|
au!
|
||||||
au BufWritePost vimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif
|
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
|
augroup END
|
||||||
|
|
||||||
" ----- Install plug (Plugin Manager)
|
" ----- Install plug (Plugin Manager)
|
|
@ -1,6 +1,6 @@
|
||||||
" vim: filetype=vim
|
" vim: filetype=vim
|
||||||
" ==============================
|
" ==============================
|
||||||
" PlugIns
|
" VIM-Plug - Plugin Manager
|
||||||
" ==============================
|
" ==============================
|
||||||
|
|
||||||
" ----- List of used plugins
|
" ----- List of used plugins
|
|
@ -16,20 +16,25 @@
|
||||||
" 'V/' ++++++
|
" 'V/' ++++++
|
||||||
" ++
|
" ++
|
||||||
" ==============================
|
" ==============================
|
||||||
|
" null2264's VIMRC
|
||||||
|
" ==============================
|
||||||
|
|
||||||
" ----- Mapping/Config
|
" ----- Sourcing Mapping/Config
|
||||||
" Universal
|
|
||||||
so ~/.config/vim/universal
|
|
||||||
" so C:\_config\vim\universal
|
|
||||||
|
|
||||||
" Automatically source config for the correct OS
|
" 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')
|
if has('win64') || has('win32') || has('win16')
|
||||||
|
" Universal
|
||||||
|
so C:\_config\vim\vim_uni
|
||||||
" Windows
|
" Windows
|
||||||
" so C:\_config\vim\windows
|
so C:\_config\vim\vim_win
|
||||||
else
|
else
|
||||||
|
" Universal
|
||||||
|
so ~/.config/vim/vim_uni
|
||||||
" *nix (Linux/Mac)
|
" *nix (Linux/Mac)
|
||||||
so ~/.config/vim/nix
|
so ~/.config/vim/vim_nix
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" ----- PlugIns
|
" ----- PlugIns
|
||||||
source ~/.config/vim/plugins
|
source ~/.config/vim/vim_plug
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue