ultisnips

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

徘徊边缘 提交于 2020-06-24 06:03:43
问题 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, it simply adds a tab space. 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? 回答1: I have the following in my vimrc : " Set ultisnips triggers let g

How to expand an UltiSnips snippet using <c-y> in the YouCompleteMe pop-up menu?

∥☆過路亽.° 提交于 2020-02-04 10:57:39
问题 This problem really hit a nerve with me. I have both YouCompleteMe and UltiSnips installed on my vim 8.0 editor. It seems that both of these plugins use the tab key for doing the auto-completion and that has created an incompatibility that has been also addressed by this question. My question is more specific, though. When I write a piece of code like <html , there is a pop-up menu that shows me all related snippets for that code. I use the tab key to navigate through that menu but when I hit

How to expand an UltiSnips snippet using <c-y> in the YouCompleteMe pop-up menu?

流过昼夜 提交于 2020-02-04 10:57:03
问题 This problem really hit a nerve with me. I have both YouCompleteMe and UltiSnips installed on my vim 8.0 editor. It seems that both of these plugins use the tab key for doing the auto-completion and that has created an incompatibility that has been also addressed by this question. My question is more specific, though. When I write a piece of code like <html , there is a pop-up menu that shows me all related snippets for that code. I use the tab key to navigate through that menu but when I hit

ViM provides a list of alternative snippets, but I'm not able to select any of them

╄→尐↘猪︶ㄣ 提交于 2020-01-25 07:41:26
问题 I can navigate up and down in the list, but if I press Enter when one of them is selected, it just inserts that value, e.g. html5 and exists from the dropdown. How can I select one and have the snippet triggered? This is my snippet config: Plugin 'SirVer/ultisnips' Plugin 'honza/vim-snippets' I'm also using Valloric/YouCompleteMe . No special config for that plugin, though. 回答1: Try :help ultisnips g:UltiSnipsExpandTrigger <tab> g:UltiSnipsListSnippets <c-tab> g:UltiSnipsJumpForwardTrigger <c

How to solve the collision of TAB key mapping of `UltiSnips` plugin in the Vim

风格不统一 提交于 2020-01-02 02:49:07
问题 I've set the mapping keys as follows: " Easy indent for code blocks nmap <tab> v> nmap <s-tab> v< vmap <tab> >gv vmap <s-tab> <gv That works good. But, when I installed UltiSnips by vundle, the Tab key does't work as indent action, it will remove multi-line codes which I selected. I know this is because the default setting of UltiSnips . I would like to remain the Tab mapping for UltiSnips to trigger its functions, How do I solve the problem of using the TAB key to indent code blocks? Thanks!

How to solve the collision of TAB key mapping of `UltiSnips` plugin in the Vim

谁说我不能喝 提交于 2019-12-05 05:53:56
I've set the mapping keys as follows: " Easy indent for code blocks nmap <tab> v> nmap <s-tab> v< vmap <tab> >gv vmap <s-tab> <gv That works good. But, when I installed UltiSnips by vundle, the Tab key does't work as indent action, it will remove multi-line codes which I selected. I know this is because the default setting of UltiSnips . I would like to remain the Tab mapping for UltiSnips to trigger its functions, How do I solve the problem of using the TAB key to indent code blocks? Thanks! Looking at UltiSnips documentation via :h UltiSnips-triggers says this: You can define the keys used

UltiSnips and YouCompleteMe

人走茶凉 提交于 2019-11-29 18:36:13
I have bundles ultisnips and youcompleteme installed on my macvim. The problem is that ultisnips doesn't work because tab is bound by ycm. I tried putting let g:UltiSnipsExpandTrigger = "<s-tab>" so that I can trigger the snippet completion with shift-tab, but it doesn't work for some unknown reason. I could use caps as the trigger, but so far I've found no way to do that. Do any of you use those two add-ons together? What can I do to make shift-tab work? Can you recommend another key to trigger snippets? Siegfried Gevatter Another option is using the SuperTab plugin: " if you use Vundle, load

UltiSnips and YouCompleteMe

折月煮酒 提交于 2019-11-28 13:14:31
问题 I have bundles ultisnips and youcompleteme installed on my macvim. The problem is that ultisnips doesn't work because tab is bound by ycm. I tried putting let g:UltiSnipsExpandTrigger = "<s-tab>" so that I can trigger the snippet completion with shift-tab, but it doesn't work for some unknown reason. I could use caps as the trigger, but so far I've found no way to do that. Do any of you use those two add-ons together? What can I do to make shift-tab work? Can you recommend another key to