inserting a new line below a comment in vim?

后端 未结 4 633
耶瑟儿~
耶瑟儿~ 2020-12-20 20:39

While inserting a new line below a comment in vim, the result tends to insert a \" at the start of the new line. It\'s probably a simple solution or reason why

4条回答
  •  清歌不尽
    2020-12-20 21:12

    This behaviour is governed by the formatoptions variable.

    Use :h formatoptions to find out more.

    The following article might also be helpful: Disable automatic comment insertion.

提交回复
热议问题