Skip to content

Upstream#1

Open
jpaulogg wants to merge 2 commits into
michelrandahl:masterfrom
jpaulogg:upstream
Open

Upstream#1
jpaulogg wants to merge 2 commits into
michelrandahl:masterfrom
jpaulogg:upstream

Conversation

@jpaulogg

Copy link
Copy Markdown

I replaced the function s:SurroundWith() with the function s:SurroundMotion(). This function allows you to surround a text object, as well as a selection in visual mode. I mapped ys to call it in normal mode, so ysiw( will surround inner word with ( and ). I also mapped S to call it in the visual mode and remapped yss to yS to call s:SurroundLine() in normal mode.

Starting from your script, I ended up creating my own. If you are interested, here is the link: https://github.com/jpaulogg/vim-simplified-surround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant