[英]Vim snipMate tab jump
Vim snipMate doesn't work correctly Vim snipMate无法正常工作
finf[Tab]
generate finf[Tab]
生成
find(:first<+, :conditions => ['<+<+field+> = ?+>', <+true+>]+>)
but cursor set to end of the line and dont jump by placeholders with [Tab] 但光标设置为行的末尾,不要使用[Tab]的占位符跳转
Update: 更新:
I try it with html - all works fine, maybe this doesn't work in *.rb files with Rails snipmates 我用html尝试 - 一切正常,也许这在带有Rails snipmates的* .rb文件中不起作用
I think there's something wrong with your snippet. 我认为你的代码片段出了问题。 I use snipMate for Python and all the placeholders looks like
${Number[:description]}
. 我使用snipMate for Python,所有占位符看起来都是
${Number[:description]}
。 Take a look at ~/.vim/snippets/
for examples. 看一下
~/.vim/snippets/
的例子。 Belows there is a simple example for a if
statement in ruby : 在Bely中有一个简单的
if
语句示例:
snippet if
if ${1:condition}
${2}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.