Updated and added support for vimrc includes
This commit is contained in:
parent
03308eb0f2
commit
96ac500480
|
@ -1 +1 @@
|
|||
Subproject commit ae0de1135dc96cfabe31d70f65112cbeadbfa3bf
|
||||
Subproject commit 3e4d10c4f17b2fe57090a524d5d78781beda204a
|
15
vimrc
15
vimrc
|
@ -1,6 +1,18 @@
|
|||
|
||||
" Function to source only if file exists {
|
||||
function! SourceIfExists(file)
|
||||
if filereadable(expand(a:file))
|
||||
exe 'source' a:file
|
||||
endif
|
||||
endfunction
|
||||
" }
|
||||
|
||||
|
||||
|
||||
exec "set rtp=$VIMHOME," . &rtp
|
||||
|
||||
call SourceIfExists("~/.config/vim/early.vimrc")
|
||||
|
||||
set encoding=utf-8
|
||||
|
||||
call plug#begin("$VIMHOME/plugged")
|
||||
|
@ -19,6 +31,7 @@ call plug#begin("$VIMHOME/plugged")
|
|||
Plug 'pearofducks/ansible-vim'
|
||||
Plug 'luochen1990/rainbow'
|
||||
Plug 'jremmen/vim-ripgrep'
|
||||
call SourceIfExists("~/.config/vim/plug.vimrc")
|
||||
if v:version > 704
|
||||
Plug 'Valloric/YouCompleteMe'
|
||||
Plug 'prabirshrestha/async.vim'
|
||||
|
@ -92,6 +105,8 @@ let g:rg_derive_root = 'true'
|
|||
|
||||
nmap <F8> :TagbarToggle<CR>
|
||||
|
||||
call SourceIfExists("~/.config/vim/late.vimrc")
|
||||
|
||||
set modeline
|
||||
set modelines=7
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 4016ff795bb184461996c5539327befc8da2af6f
|
||||
Subproject commit d43c309f888153d6c46d8b6a3a0186f4148680fd
|
|
@ -1 +1 @@
|
|||
Subproject commit 922eee0706acb111e9678ac62ee77801941d6df2
|
||||
Subproject commit 8def5f15835f294ec6a1bf220fb330efddbe2575
|
|
@ -1 +1 @@
|
|||
Subproject commit 35c8690c0025ceef9584f64da86ced3a72ee32b6
|
||||
Subproject commit be3882aeb054d01f6667facc31522e82f00b5e94
|
Loading…
Reference in New Issue