obsidian-vimrc-support icon indicating copy to clipboard operation
obsidian-vimrc-support copied to clipboard

What should i do to surround the text with prefix including space

Open luoluorushi opened this issue 2 years ago • 2 comments

i want to surround the text like this: <font color="Yellow">Yellow</font>

luoluorushi avatar Sep 02 '21 22:09 luoluorushi

Unfortunately surround doesn't work with spaces, since spaces are the delimiters for the left and right surround text. I will look into adding \ to escape the space delimiter.

Andr3wD avatar Sep 15 '21 19:09 Andr3wD

@luoluorushi since release 0.4.3, the escape character \ has been added to escape the space delimiter for the surround command. Surrounding text with <font color="Yellow">TEXT</font> should now be possible with :surround <font\ color="Yellow"> </font>.

Andr3wD avatar Nov 01 '21 19:11 Andr3wD