- NERDTree
目录管理,树状导航
[root@kyle download]# wget -c http://www.vim.org/scripts/download_script.php?src_id=11500
[root@kyle download]# mkdir NERD_tree/
[root@kyle download]# mv NERD_tree.zip NERD_tree/
[root@kyle download]# cd NERD_tree/
[root@kyle NERD_tree]# unzip NERD_tree.zip
[root@kyle NERD_tree]# cp -rvf plugin/* ~/.vim/plugin/
[root@kyle NERD_tree]# cp -rvf doc/* ~/.vim/doc/
[root@kyle NERD_tree]# cp -rvf nerdtree_plugin/ ~/.vim/
[root@kyle NERD_tree]# vim /etc/vimrc
在最后添加:
nmap <F2> :NERDTree <CR>
- taglist
函数和变量标签
[root@kyle download]# wet -c http://www.vim.org/scripts/download_script.php?src_id=7701
[root@kyle download]# mkdir taglist/
[root@kyle download]# mv taglist_45.zip taglist/
[root@kyle download]# cd taglist/
[root@kyle taglist]# unzip taglist_45.zip
[root@kyle taglist]# cp -rvf plugin/* ~/.vim/plugin/
[root@kyle taglist]# cp -rvf doc/* ~/.vim/doc/
[root@kyle taglist]# vim /etc/vimrc
在最后添加:
nmap <F3> :Tlist <CR>
- php-doc
生成php注释文档
[root@kyle download]# wget -c http://www.vim.org/scripts/download_script.php?src_id=4666
[root@kyle download]# cp -rvf php-doc.vim ~/.vim/plugin/
[root@kyle download]# vim /etc/vimrc
在最后添加:
inoremap <C-P> <ESC>:call PhpDocSingle()<CR>i
nnoremap <C-P> :call PhpDocSingle()<CR>
vnoremap <C-P> :call PhpDocRange()<CR>
- ACP
自动补齐
[root@kyle download]# wget -c http://www.vim.org/scripts/download_script.php?src_id=11894
[root@kyle download]# mkdir ACP
[root@kyle download]# cp -rvf vim-autocomplpop.zip ACP/
[root@kyle ACP]# unzip vim-autocomplpop.zip
[root@kyle ACP]# cp -rvf autoload/ ~/.vim/
[root@kyle ACP]# cp -rvf doc/* ~/.vim/doc/
[root@kyle ACP]# cp -rvf plugin/* ~/.vim/doc/
[root@kyle ACP]# cd /root/.vim/
上网去下载php_funclist.txt
本人是去phpdoc-doc-base上面复制粘贴到到~/.vim/php_funclist.txt
[root@kyle ACP]# vim /etc/vimrc
在最后添加:
set dictionary-=~/.vim/php_funclist.txt dictionary =~/.vim/php_funclist.txt
set complete-=k complete =k
Be First to Comment