Use vim-plug to manage vim plugins.
This commit is contained in:
@@ -63,3 +63,19 @@ au BufNewFile,BufRead *.json set ft=javascript
|
||||
|
||||
" make Python follow PEP8 ( http://www.python.org/dev/peps/pep-0008/ )
|
||||
au FileType python set softtabstop=4 tabstop=4 shiftwidth=4 textwidth=79
|
||||
|
||||
" Install vim-plug
|
||||
if empty(glob('~/.vim/autoload/plug.vim'))
|
||||
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
||||
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||
endif
|
||||
|
||||
" Specify a directory for plugins
|
||||
" Install plugins
|
||||
call plug#begin('~/.vim/plugged')
|
||||
|
||||
Plug 'elzr/vim-json'
|
||||
|
||||
" Initialize plugin system
|
||||
call plug#end()
|
||||
|
||||
Reference in New Issue
Block a user