Vim smart insert semicolon

前端 未结 7 827
遇见更好的自我
遇见更好的自我 2021-02-04 00:49

Is there a Vim plugin that can handle smart semicolon insertion, like the one in Eclipse?

Example (pipe character is insertion cursor):

foobar(|)
         


        
7条回答
  •  再見小時候
    2021-02-04 01:25

    For vscode vim users:

    "vim.insertModeKeyBindings": [
          {
            "before": [";", ";"],
            "after": ["","A",";"]
          },
        ],
    

    I was inspired by romainl's answer above, but seems have a switch problem in vocode vim, so just use will work.

提交回复
热议问题