1. 程式人生 > >vim外掛安裝 及 使用NERDTree分屏

vim外掛安裝 及 使用NERDTree分屏

VIM的外掛

安裝:

1、下載vundle(管理外掛工具)

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

注意:~開始是下載到哪,我這裡下載到了家目錄

2、修改配置檔案

//1、開啟vim的配置
vim ~/.vimrc
//2、配置外掛以及安裝
set nocompatible
filetype off
map <C-n> :NERDTreeToggle<CR>
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'https://github.com/kien/ctrlp.vim.git'
Plugin 'https://github.com/scrooloose/nerdtree.git'
Plugin 'https://github.com/aperezdc/vim-template.git'
call vundle#end()
filetype plugin indent on

3、配置完,執行 vim +PluginInstall +qall

使用:

來回切換,是連按倆下ctrl + w