Vim Ultisnips - How do I move to the next placeholder or tabstop?

后端 未结 2 392
灰色年华
灰色年华 2021-02-04 02:04

I just installed a brand new copy of Macvim and UltiSnips, but I can\'t figure out how to move to the next completions using tabstops and placeholders.

When I press tab,

相关标签:
2条回答
  • 2021-02-04 02:18

    It looks like jumping to the next tabstop was mapped to control j. I switched it to tab in the ultisnips source.

    " The trigger used to jump forward to the next placeholder.
    " NOTE: expansion and forward jumping can, but needn't be the same trigger
    
    if !exists("g:UltiSnipsJumpForwardTrigger")
        let g:UltiSnipsJumpForwardTrigger = "<tab>"
    endif
    
    0 讨论(0)
  • 2021-02-04 02:19

    I have the following in my vimrc:

    " Set ultisnips triggers
    let g:UltiSnipsExpandTrigger="<tab>"                                            
    let g:UltiSnipsJumpForwardTrigger="<tab>"                                       
    let g:UltiSnipsJumpBackwardTrigger="<s-tab>"                                    
    
    0 讨论(0)
提交回复
热议问题