mirror of
https://github.com/don-philipe/dotfiles.git
synced 2025-11-08 22:57:03 +01:00
Add vim plugin manager with some plugins
This commit is contained in:
27
.vimrc
27
.vimrc
@@ -42,6 +42,33 @@ highlight Comment ctermfg=012
|
|||||||
"
|
"
|
||||||
" plugins
|
" plugins
|
||||||
" =======
|
" =======
|
||||||
|
|
||||||
|
" Use vim-plug as plugin manager
|
||||||
|
" Autoinstall it when missing:
|
||||||
|
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
|
||||||
|
if empty(glob(data_dir . '/autoload/plug.vim'))
|
||||||
|
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||||
|
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Plugin config section. Plugins will be installed under ~/.vim/plugged/
|
||||||
|
call plug#begin()
|
||||||
|
|
||||||
|
" Ansible syntax highlighting
|
||||||
|
Plug 'pearofducks/ansible-vim'
|
||||||
|
|
||||||
|
" NERDtree
|
||||||
|
Plug 'preservim/nerdtree'
|
||||||
|
|
||||||
|
" Statusline
|
||||||
|
Plug 'vim-airline/vim-airline'
|
||||||
|
|
||||||
|
" Git diff in sign column
|
||||||
|
Plug 'airblade/vim-gitgutter'
|
||||||
|
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
|
|
||||||
" ,nn will toggle NERDTree on and off
|
" ,nn will toggle NERDTree on and off
|
||||||
"nmap <LocalLeader>n :NERDTreeToggle<cr>
|
"nmap <LocalLeader>n :NERDTreeToggle<cr>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user