站长资源脚本专栏

在vim中添加perl注释时无法对齐问题的解决方法

整理:jimmy2025/2/27浏览2
简介在.vimrc中加入如下几行,即可解决这个问题。复制代码 代码如下:"Only do this part when compiled with support for autocommands.if has("autocmd") filetype plugin indent onelse
在.vimrc中加入如下几行,即可解决这个问题。

复制代码 代码如下:
"Only do this part when compiled with support for autocommands.
if has("autocmd")
    filetype plugin indent on
else
    set autoindent
endif "has("autocmd")