1

I would like to write snippets for Less (.less) and Stylus (.styl) and use then in Vim's snipMate plugin. How can I accomplish that?

EDIT: I know that the first step is to create a file inside the snippets folder with a name like this: less.snippets or stylus.snippets but after that I'm not sure what to do.

alexchenco
  • 53,565
  • 76
  • 241
  • 413
  • did you eventually create yours? Also, did you know abwt this snippets [repo](https://github.com/honza/snipmate-snippets/tree/master/snippets) – tUrG0n Sep 09 '12 at 14:55

1 Answers1

2

Yes right that is the first step. And after that you have to set the filetype of the files you want to edit with multiple snippets to:

set filetype=less.styl

or

set filetype=styl.less

I've just tested it with the snipmate "official" fork and it works fine but I'm sure enough it should work with the original plugin too.

lucapette
  • 20,564
  • 6
  • 65
  • 59
  • Thanks, by the way, what's new with that fork? – alexchenco Dec 05 '11 at 09:38
  • 1
    @alexchenco A lot of things! It's a bit more difficult to install because it has some dependencies. But surely it's worth a try. The best thing with new fork is autocompletion of snippets that start with the same letters, I love that feature. – lucapette Dec 05 '11 at 09:42
  • Thanks, I will give it a try. You are right, it is difficult to install (still trying to figure out how). – alexchenco Dec 05 '11 at 10:08