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