在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中的本地時間與UNIX時間戳間相互轉(zhuǎn)換的方法
這篇文章主要介紹了講Perl中的本地時間與UNIX時間戳間相互轉(zhuǎn)換的方法,主要用到了Perl中的Date::Parse模塊,需要的朋友可以參考下2015-06-06