2014-01-19 23 views
2

很久以前在不同的機器上,當我用寫在VIM C代碼,我已使東西,所以,當我開始評論時/*和打在輸入*/之前輸入,VIM將輸入一個*並將其很好地分開。那是什麼,我如何恢復它?我想它自動做到這一點:VIM C/*註釋*如果* /不存在

/* some comments 
* <-- VIM put this " * " here */ 

一般建議,使VIM冷卻器歡迎。

回答

5

這是roformatoptions。見:help fo-table

letter meaning when present in 'formatoptions' 

r  Automatically insert the current comment leader after hitting   
     <Enter> in Insert mode.             
o  Automatically insert the current comment leader after hitting 'o' or  
     'O' in Normal mode.