作者changyuheng (张昱珩)
看板Editor
标题Re: [vim ] YouCompleteMe 结合 UltiSnips
时间Sat Jan 10 13:50:53 2015
1F:推 qas612820704: 你好我想问一下你 UltiSnips 的补齐是设什麽~?01/10 04:24
2F:→ qas612820704: UltiSnips 如果设 tab 会被 Ycm 吃掉 01/10 04:24
3F:→ 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
--
http://changyuheng.github.io/
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 220.141.146.250
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Editor/M.1420869059.A.5A7.html
4F:推 qas612820704: 谢谢你! 01/10 15:05