vim-surround icon indicating copy to clipboard operation
vim-surround copied to clipboard

Insert mode mapping to put cursor after closing delimiter

Open aleprovencio opened this issue 9 years ago • 1 comments

Hello @tpope,

please correct me if I'm misusing surround's i_CTRL-G_s but every time I need to keep writing outside the just placed delimiters (after putting text inside them), I go to normal mode using ESC or even CTRL-o and come back to insert mode with A, la, etc putting the cursor position where I need to.

DelimitMate's S-Tab puts the cursor right after the next closing delimiter, without leaving insert mode. They have also CTRL-G_g to do the same thing but acting on the last delimiter on nested delimiters situations.

Besides being faster than my method, this has an added benefit to not mess with other actions happening such as a code completer's preview window being closed when going to normal mode.

Can we achieve such behavior with just vim and and the current surround.vim? Can it be a new feature on surround.vim or maybe on vim-rsi??

aleprovencio avatar Aug 05 '16 20:08 aleprovencio

That sort of stuff is easier said than done. I don't see it happening with the current implementation of surround.vim.

My uses of i_CTRL-G_s are pretty limited. Most of the time, I end up following it up with a <Esc>o to go to the next line.

tpope avatar Apr 27 '17 23:04 tpope