Is it possible to use vim plugin vim-surround
to wrap markdown?
For example I have code I would like to wrap
# ruby code here
with
```Ruby
# ruby code here
```
Add the following to your ~/.vim/after/ftplugin/markdown.vim
file:
let b:surround_{char2nr('r')} = "```Ruby\r```"
Select your lines of code via V
then surround via Sr
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With