2009/03 19
vim的确是个好东西。 简单又快捷。针对在Vim编辑PHP文件,以下是在Ubuntu中的Vim安装及配置:

1. sudo apt-get install vim
2. sudo vi /etc/vim/vimrc
根据vimrc中的提示,Uncommenting一些需要的配置。 支持PHP主要需要解除注释的有以下几处:

'打开语法高亮
syntax on



'记录上次文件的编辑位置
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g'\"" | endif
endif



'自动识别文件类型
if has("autocmd")
filetype indent on
endif



Defined tags for this entry: ,

Posted by rollenc

Last modified on 2009-03-19 10:14

0 Trackbacks

  1. No Trackbacks

1 Comments

  1. blueeon says:

    刚好用到

Add Comment


E-Mail addresses will not be displayed and will only be used for E-Mail notifications.