Vimで改行するときに自動でコメントが続くのを無効化する
以下の記事を参考にさせていただきました。
http://qiita.com/necojackarc/items/1f997481764ed42023a7
以下でいけるとの情報が。
" .vimrc set formatoptions-=ro
これがなんなのかってのは、
:help fo-table You can use the 'formatoptions' option to influence how Vim formats text. ... 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. ...
-=
でこの設定を打ち消しできるということか!
といことで<Enter>
とo
とO
でのコメント自動挿入をこれで取り消せるみたい。
僕の場合はこれで挿入されないようになりました。ソースの言語によったりするのかな?
ひとまずこれでまたvimが便利になった(゚▽゚)