nodejh
7/1/2018 - 3:01 PM

vim配置

vim配置

  • 切换显示隐藏文件 shit + i You can use Shift+i to toggle hidden files.
" Load vim-plug
if empty(glob("~/.vim/autoload/plug.vim"))
    execute '!curl -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/master/plug.vim'
endif

call plug#begin()
Plug 'tpope/vim-sensible'
Plug 'scrooloose/nerdtree'
call plug#end()



let NERDTreeShowHidden=1 " 显示隐藏文件

vim-plug vs Vundle

Why I switched from Vundle to Plug

  • Vundle is not being actively maintained by its creator
  • Simpler bootstrapping for initial install.
  • “Lazy Load” plugins

Simpler bootstrapping for initial install.

" Load vim-plug
if empty(glob("~/.vim/autoload/plug.vim"))
    execute '!curl -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/master/plug.vim'
endif