vim中添加perl注释无法对齐的解决办法

在使用vim编辑perl脚本时,每当输入#号时,#号都会跑道行首,在CU上问了一下,有个办法可以用。在.vimrc中加入如下几行

"Only do this part when compiled with support for autocommands.
if has(
"autocmd")
filetype plugin indent on
else
set autoindent
endif
"has("autocmd")

 

posted on 2012-01-10 09:33  perlman  阅读(459)  评论(0编辑  收藏  举报

导航