Vim Ultisnips-如何移至下一个占位符或Tabstop? [英] Vim Ultisnips - How do I move to the next placeholder or tabstop?

查看:165
本文介绍了Vim Ultisnips-如何移至下一个占位符或Tabstop?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了Macvim和 UltiSnips 的全新副本,但我不知道该怎么做使用制表符和占位符移至下一个完成.

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.

当我按Tab键时,它只是添加了一个制表符空间.

When I press tab, it simply adds a tab space.

我的猜测是,tab键已重新映射到另一个插件或vimrc中,因此我进行了全新安装和一个空的〜/.vim文件夹.还是没事...

My guess is that the tab key was remapped in another plugin or vimrc, so I went with fresh installs and an empty ~/.vim folder. Still nothing...

如何移动到下一个制表位?我可以设置一个键映射吗?

How do I move to the next tabstop? Is there a key mapping I can set?

推荐答案

我的vimrc中包含以下内容:

" Set ultisnips triggers
let g:UltiSnipsExpandTrigger="<tab>"                                            
let g:UltiSnipsJumpForwardTrigger="<tab>"                                       
let g:UltiSnipsJumpBackwardTrigger="<s-tab>"                                    

这篇关于Vim Ultisnips-如何移至下一个占位符或Tabstop?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆