Tuesday, May 6, 2014

Re: Added asm.snippets to snipmate but cannot get it working without :set filetype=asm

Hi Fabio,

consider telling your mail client to send textmails only when posting to
mailinglists.

About snipmate and filetypes:
Do RTFM: https://github.com/garbas/vim-snipmate
=> FAQ

Thus setting scope_aliases is one option.
How to set filetype?

ftdetect/*.vim files get the job done as well as au commands, like this:

autocmd BufRead,BufNewFile *.y,*.ly :set ft=happy

ft can contain multiple filetypes AFAIK, eg ft=a,b

snipmate itself supports "importing" other snippet files, too.
But I recommend using the scope_aliases instead.

If it should happen that you're still using msanders of snipmate version
then get consider using a plugin manager which supports vim-pi which
tries to protect against using outdated plugins by telling you about
alternatives when installing.

Eg see: http://vim-wiki.mawercer.de/wiki/topic/vim%20plugin%20managment.html

You also want to know about the collaborative vim-snippets effort:
https://github.com/honza/vim-snippets

We welcome you to help maintain the assembler snippets.

Marc Weber

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: