Raimondi / delimitMate

Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
http://www.vim.org/scripts/script.php?script_id=2754
1.98k stars 117 forks source link

Jump with Ctrl+g g will jump over bracket when brackets are in quotes #257

Closed shibumi closed 7 years ago

shibumi commented 7 years ago

Hello, Thats how you can reproduce this issue:

  1. first open a new sh file.. vim $RANDOM.sh

  2. Type a double quote " (your cursor is |) "|"

  3. Type a bracket { "{|}"

  4. Type something like foobar:

"{foobar|}"

  1. Now press Ctrl+g g for jumping out of the brackets:

"{foobar}"|

And thats the problem.. you will jump out of the brackets AND the double quotes.. is there a way to only jump out of the brackets and then jumping again if I want to be out of the double quotes?

Raimondi commented 7 years ago

Shift-Tab should jump one delimiter, if you want to map that to something else then see :help delimitMateMappings.

shibumi commented 7 years ago

Thanks! I didn't know Shift+Tab. Thanks a lot thats much better than the other shortcut.