vim-surround: mapping for {<cr> #1386
Unanswered
hieulmhe176232
asked this question in
Q&A
Replies: 1 comment
-
|
I found a solution by using macro: let @s="gvS\<CR>w"
xmap gSb Sbvib<esc>@s
xmap gSB SBviB<esc>@s
xmap gS) S)vi)<esc>@s
xmap gS( S(vi(<esc>@s
xmap gS{ S{vi{<esc>@s
xmap gS} S}vi}<esc>@sBut then have new problem, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to create a mapping that wrap selection with {<cr>, so that:
will become:
Attempt: visual selection, then press
S{to become this:Visual again by
vi{, then pressS<cr>.It works, but need too many strokes. So that i create a mapping:
But it only become:
sorry for my bad english.
Beta Was this translation helpful? Give feedback.
All reactions