[Ubuntu] php5.3 manual for vim

1. Download the phpmanual_for_vim



2. Uncompress the file to a directory, for example, ~/.vim/doc/phpmanual


3. set the configure of .vimrc

set runtimepath+=~/.vim/doc/phpmanual
autocmd BufNewFile,Bufread *.ros,*.inc,*.php set keywordprg="help"


that is all! you can type <s-k> on the word in view mode to see the details from php manual.


BTW, when using this way, and vim info you that

tags file not sorted

you can use vim to open the folder, and then type %sort


Have fun with vim!




posted @ 2013-01-13 01:22 DavidHHuan 阅读(...) 评论(...) 编辑 收藏