Slippery Snippets

Monday, February 25, 2008

1.2.2

Spare time plus a working version of bzr-svn has meant that I've had a bit of time for bug fixing. 1.2.2 is therefore now on vim.org.

One big change: the plugin is now separate from the bundles. At the moment they both live on the same page, as I don't think it's worth setting up a new page.

Get downloading!

P.S. Many thanks to everyone who's voted for the plugin. It's now sitting at number 24 out of 2149. Quite an achievement given what the first version looked like...

9 Comments:

At 7:31 PM, Blogger Christian said...

snippetsEmu is the best vim plugin!
thanks for your work.

christian

 
At 11:07 PM, Blogger Travis Jeffery said...

Thanks a lot man.

 
At 9:28 AM, Blogger Nico said...

At least state on the project page that I'm supposed to download two files. I wasn't sure which file to get before I came here.

 
At 9:37 PM, Blogger Remko said...

Extremely handy!
By the way, I noticed there's a more recent version on vim.org than the one you announced here. Would it be possible to announce new versions on your blog, such that I can subscribe on an RSS feed to stay up to date with your scripts? Thanks!

 
At 7:09 PM, Blogger Brad Phelan said...

Just found snippets and it's the best thing I've found with vim in years. I wrote my own crappy version years ago. This puts my effort to shame. However what I don't like is having to edit nasty vim eval strings to modify my snippets.

I've made a a snippetsEmu extension so that you can place plain text bundle files in a directory and the trigger word is the file name. I like it and you can get it off github at

http://github.com/bradphelan/vimgonesurfing/tree/master

Cheers

and thanks again for such a cool plugin.

 
At 6:37 PM, Blogger ~ simple minds in simple words ~ said...

Thanks for such as useful (very) vim's plugin.

 
At 6:46 AM, Blogger httpdss said...

great plugin!
i have a question: is it posible to delete characters before the snippet tag if the i skip the snippet?
for example:
i have TAB asigned for navigating through the snippets.
1) I load the django_model_snippets.vim
2) type in mchar[TAB] and the following appears: models.CharField(maxlength=<{50}><{}>)<{}>
3) if i press tab again it goes to models.CharField(maxlength=50)<{}>

my question is .. instead of resulting in step 3 is there any posibility of presing tab and the result to be: models.CharField() ?

Thanks in advanced !
Kenny

 
At 10:44 AM, Blogger Felix said...

There's no real way to do that; the best way would be to define a new snippet. I believe that the maxlength is included as it's required by Django. If that's not the case these days then can you file a bug on the tracker and I'll tweak the bundle.

 
At 3:47 AM, Blogger ~ simple minds in simple words ~ said...

hi, i would like to know how to turn on the snipetEmu automatically on every file i open ?

I create new snippets for GSP (groovy server pages) and I associate the gsp files with XHTML syntax. Everytime i want to use snippetEmu, i need to click on Menu -> Snippets-> gsp

any shortcut for that ?

 

Post a Comment

<< Home