You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to find a way to add some liquid/jekyll snippet to my vim, something that would for example paste a
{% highlight raw %}
cursor here
{% endhighlight %}
if I type something like ysnipraw
I tried vim-surround and vim-jekyll, none of those both pluggins do the job.
By any chance can you give me a hint ?
Thanks & regards
The text was updated successfully, but these errors were encountered:
I know this issue is quite old, and I'm not sure if you guys are still interested, but I did something quite similar to that to automate front matter creation (I didn't know about vim-jekyll!), and that gave me the idea below.
I'm sure this is not what you were looking for yet, but:
created a file called ysnipraw
added this line to init.vim:
imap ysnipraw <ESC>:0r ysnipraw<CR>o
Now writing ysnipraw inserts the snippet and places the cursor between the tags.
Note: the mapping above assumes that you and the snippet are on the same directory...
Hi
I'm trying to find a way to add some liquid/jekyll snippet to my vim, something that would for example paste a
{% highlight raw %}
cursor here
{% endhighlight %}
if I type something like ysnipraw
I tried vim-surround and vim-jekyll, none of those both pluggins do the job.
By any chance can you give me a hint ?
Thanks & regards
The text was updated successfully, but these errors were encountered: