开发者

Vim + Snippets isn't working

I'm not sure if this questi开发者_高级运维on should be done in the superusers, but anyway, lets give it a try.

Here is my problem.. I'm running ubuntu 9.10 and I'm tying to create a development environment with Vim and it's plugins. I've done everything that I needed, but I'm having some issues with the snippets:

When I'm in a model and I press:

bt<TAB>

I got:

belongs_to :<+association_name+><+, :class_name => "<+Object+>", :foreign_key => "<+<+object+>_id+>"+>

But if I start typing, instead of replace the association_name with what I type, it just place the text after the line.

Anyone know what could be happening?

Thanks.


not sure which plugin you're using but snipMate has a much easier config/syntax for creating and using snippets within vim,

http://www.vim.org/scripts/script.php?script_id=2540

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜