How can I go to end of parenthesis/brackets/quotes without switching insert mode in Vim?

前端 未结 4 1408
不思量自难忘°
不思量自难忘° 2021-02-04 05:45

I\'m looking for a plugin that makes you get out of parenthesis/brackets/quotes/etc when you\'re inside them. I find it kind of hard having to ESC to command mode and typing A t

4条回答
  •  别跟我提以往
    2021-02-04 06:10

    I'm use to using Tab to jump out of things like parenthesis, curly braces, etc., so I just made a simple mapping to Shift+Tab that simply moves the character 1 character to the right from INSERT mode. Here's my simple mapping that seems to be just fine for my purposes.

    inoremap  la
    

    Edit: It seems that delimitMate has this same mapping (Shift+Tab) for jumping over a closing delimiter. I think i'll just use that since I already use delimitMate.

提交回复
热议问题