在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 標(biāo)量和運(yùn)算符的一些知識(shí)介紹
有關(guān)perl的標(biāo)量和運(yùn)算符的一些知識(shí),有需要的朋友可以看看2013-02-02
使用perl清理電腦上重復(fù)文件實(shí)現(xiàn)代碼(續(xù))
使有perl搜索電腦上的重復(fù)文件并刪除,需要的朋友可以參考下2013-02-02
perl子程序的運(yùn)用及子程序中變量私有(my)聲明的重要性
perl中的my可以來(lái)定義私有變量,可以在很多情況下防止錯(cuò)誤的發(fā)生2013-02-02

