Re: [vim ] YouCompleteMe 结合 UltiSnips

楼主: changyuheng (张昱珩)   2015-01-10 13:50:53
推 qas612820704: 你好我想问一下你 UltiSnips 的补齐是设什么~? 01/10 04:24
→ qas612820704: UltiSnips 如果设 tab 会被 Ycm 吃掉 01/10 04:24
→ qas612820704: 可是不设 tab 感觉用起来有那么点不直觉 01/10 04:25
我是只避开冲突的地方,做最小的更动:
let g:UltiSnipsExpandTrigger = "<C-j>"
UltiSnips 的作者也提到:
"Overloading one key to do more than one function in Vim will come back to
bite you because there will always be situations where there is ambiguity."
这边有几个方法,有些还有效:
http://stackoverflow.com/questions/14896327/ultisnips-and-youcompleteme
其中 http://stackoverflow.com/a/22253548 可能符合你的要求。
有兴趣可以再看看 YouCompleteMe 的 issue 讨论串:
https://github.com/Valloric/YouCompleteMe/issues/36
作者: qas612820704 (Lego)   2014-01-10 04:24:00
UltiSnips 如果设 tab 会被 Ycm 吃掉可是不设 tab 感觉用起来有那么点不直觉谢谢你!

Links booklink

Contact Us: admin [ a t ] ucptt.com