Wednesday, October 3, 2012

Re: snipMate not working

Current upstream snipmate is hosted here:
https://github.com/honza/vim-snipmate

If you want to be done fast get VAM (or a similar addon manager).
Then adding "snipmate" to the list of known plugins is enough.

Just installing the plugin snipMate is not enough, you also have to
enable common options such as filetype,plugin on etc.

See lines at the top (24 till 34) found here
https://github.com/MarcWeber/vim-addon-manager/blob/master/autoload/sample_vimrc_for_new_users.vim

You know that you have a very recent upstream versions if you have this
command: SnipMateOpenSnippetFiles and if the snipmate repo no longer
contains the snippet files. They are located at https://github.com/honza/snipmate-snippets

Whether you need this most recent version is up to you.

If you're really lazy you can also use this downloader
https://mawercer.de/~marc/vam/index.php
"snipmate-snippets" is the plugin name you want.
It'll fetch dependencies (snipmate and some more) automatically.
Then copy everything (.vimrc, .vim) into your home directory after
having reviewed the contents.

Last but not least: snippets for html are fine, DSLs are better.
Give ZenCoding or sparkup plugin a try. Then you can type:

table>tr*3>td*3 and get:


<table>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</table>

instantly.

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

No comments: