在vim中添加perl注释时无法对齐问题的解决方法
更新时间:2013年02月05日 14:18:41 作者:
在使用vim编辑perl脚本时,每当输入#号时,#号都会跑到行首问题,需要的朋友可以参考下
在.vimrc中加入如下几行,即可解决这个问题。
"Only do this part when compiled with support for autocommands.
if has("autocmd")
filetype plugin indent on
else
set autoindent
endif "has("autocmd")
复制代码 代码如下:
"Only do this part when compiled with support for autocommands.
if has("autocmd")
filetype plugin indent on
else
set autoindent
endif "has("autocmd")
相关文章
Perl 文本文件的读写操作、文件的重命名和删除、多个文本文件的合
Perl 文本文件的读写操作、文件的重命名和删除、多个文本文件的合并实现代码,需要的朋友可以参考下2013-02-02perl中chomp的使用介绍(chop和chomp函数区别)
perl程序中,有时在输入过程中使用chomp才会得到正确的结果2013-02-02
最新评论