Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

vim

snipmate

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

like image 612
forellana Avatar asked Jul 23 '10 21:07

forellana


3 Answers

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

like image 125
suhair Avatar answered Nov 03 '22 11:11

suhair


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.

like image 8
SirVer Avatar answered Nov 03 '22 11:11

SirVer


Have a look at the following discussion

like image 1
jinfield Avatar answered Nov 03 '22 13:11

jinfield