Vim: SnipMate Plugin: how i can change a .snippet and update it on the fly?
Asked Answered
N

3

31

does anyone know how to edit a dot snippet file and reload into (g)vim without closing and re-open the program? it would be great to do that with this excellent plugin.

greetings

Nucleus answered 23/7, 2010 at 21:25 Comment(0)
I
41

If you have the latest version of snipmate you can use the following command from vim to reload all the snippets :call ReloadAllSnippets() or better you can map it to a key

Illustration answered 2/12, 2010 at 9:49 Comment(1)
Thanks. just so its clear to others, at time of posting with 0.83 the latest version on vim.org, I had to go to the github dev version to get this function: github.com/msanders/snipmate.vimIngenuous
O
8

I am currently on a promoting tour for UltiSnips on StackOverflow. UltiSnips will watch your snippet files for change, so all you have to do is save your .snippets file and the changes are immediately available in Vim. There is also a handy :UltiSnipsEdit command that will open the correct snippets file right away.

A conversion script for snipMate snippets is shipped with UltiSnips, so switching is easy.

Ortega answered 27/7, 2011 at 5:56 Comment(0)
A
1

Have a look at the following discussion

Anaplastic answered 23/7, 2010 at 22:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.