ltstudio 发表于 2015-12-28 08:49:07

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")
  
页: [1]
查看完整版本: vim中添加perl注释无法对齐的解决办法