Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying ysiw** for markdown files #202

Closed
iampbernardo opened this issue May 27, 2016 · 2 comments
Closed

Trying ysiw** for markdown files #202

iampbernardo opened this issue May 27, 2016 · 2 comments

Comments

@iampbernardo
Copy link

Trying to make ysiw** as a help for markdown files, results in adding only on *.
Am I doing it wrong or isn't that posible right now?

@tpope
Copy link
Owner

tpope commented May 27, 2016

Not possible.

@davidsierradz
Copy link

davidsierradz commented Sep 30, 2019

You can use surround customizing (see: :h surround-customizing), for example:

augroup initvim
  au!
  autocmd FileType markdown let b:surround_8364 = "**\r**"
augroup END

8364 is the € symbol (check the symbol number with :echo char2nr("-"), now you can use it like:

|foo bar
ys2w€
|**foo bar**

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

No branches or pull requests

3 participants