Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how could add literal string in vim snippet?

I wanna write a snippet like this:

snippet code
    ``` ${1:ruby}

    ```

but `` is used to wrap script command, how could I make it?

Thanks all !

like image 863
user2031771 Avatar asked Dec 05 '25 13:12

user2031771


1 Answers

Newer versions of snipMate allow for escaping backticks:


snippet code
    \`\`\` ${1:ruby}

    \`\`\`

https://github.com/garbas/vim-snipmate

https://github.com/msanders/snipmate.vim

like image 138
Elliot Foster Avatar answered Dec 07 '25 03:12

Elliot Foster



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!