I have this Vim command to jump outside any parentheses or quotes or double quotes or bracked, when you're inside a closed region. When I press jj fast, it allows me to jump outside the closed region:
inoremap jj <Esc>/[)}"'\]>]<CR>:nohl<CR>a
Note that the regular expression begins after
<Esc>. I was missing this in Emacs.
I decided to give a try with the following:
(key-chord-define evil-insert-state-map "jj" ;; Escape from capsuled string '(lambda () (interactive) (forward-char 1) (insert " ")))
For example, * is the place of the cursor.
This is an another "example of a string *" within this sentence
jj fast allows me to jump outside the string inside the sentence.
1. It's only working if the cursor is on the last character before the quote. And not in middle for example. How to solve it?
2. How get it working for single quotes ('), brackets '}', or parentheses ())?.
Any suggestion would be really appreciated.