在vim中添加perl注釋時(shí)無(wú)法對(duì)齊問(wèn)題的解決方法
更新時(shí)間:2013年02月05日 14:18:41 作者:
在使用vim編輯perl腳本時(shí),每當(dāng)輸入#號(hào)時(shí),#號(hào)都會(huì)跑到行首問(wèn)題,需要的朋友可以參考下
在.vimrc中加入如下幾行,即可解決這個(gè)問(wèn)題。
"Only do this part when compiled with support for autocommands.
if has("autocmd")
filetype plugin indent on
else
set autoindent
endif "has("autocmd")
復(fù)制代碼 代碼如下:
"Only do this part when compiled with support for autocommands.
if has("autocmd")
filetype plugin indent on
else
set autoindent
endif "has("autocmd")
相關(guān)文章
perl高級(jí)排序,<=>操作符,飛船操作符
perl高級(jí)排序的關(guān)鍵在于要指定排序的方式,使用的操作符是spaceship operator(<=>)2013-02-02講Perl中的本地時(shí)間與UNIX時(shí)間戳間相互轉(zhuǎn)換的方法
這篇文章主要介紹了講Perl中的本地時(shí)間與UNIX時(shí)間戳間相互轉(zhuǎn)換的方法,主要用到了Perl中的Date::Parse模塊,需要的朋友可以參考下2015-06-06perl用grep map求交集、并集、補(bǔ)集的實(shí)例代碼
perl 用grep map求交集、并集、補(bǔ)集的例子,有需要的朋友可以參考下2013-02-02Perl集群配置管理系統(tǒng)Rex簡(jiǎn)明手冊(cè)
這篇文章主要介紹了Perl集群配置管理系統(tǒng)Rex簡(jiǎn)明手冊(cè),自動(dòng)化運(yùn)維的一個(gè)管理工具,需要的朋友可以參考下2014-06-06