简体   繁体   中英

Vim snipMate tab jump

Vim snipMate doesn't work correctly

finf[Tab] generate

find(:first<+, :conditions => ['<+<+field+> = ?+>', <+true+>]+>)

but cursor set to end of the line and dont jump by placeholders with [Tab]

Update:

I try it with html - all works fine, maybe this doesn't work in *.rb files with Rails snipmates

I think there's something wrong with your snippet. I use snipMate for Python and all the placeholders looks like ${Number[:description]} . Take a look at ~/.vim/snippets/ for examples. Belows there is a simple example for a if statement in ruby :

snippet if
    if ${1:condition}
        ${2}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM