让 YcmCompleter RefactorRename 快捷方式正常工作
我想添加 YcmCompleter RefactorRename 命令的快捷方式。这是我到目前为止所拥有的:
nmap
当我按快捷键时,我看到输入提示,但在输入新名称后,操作失败,并显示 RuntimeError: Cannot rename the symbol under
如果我在同一个地方运行 YcmCompleter RefactorRename newname
,它工作得很好 我的脚本似乎有问题
我该如何让它工作?
I would like to add shortcut for YcmCompleter RefactorRename command. Here is what I have so far:
nmap <leader>yrn :exe 'YcmCompleter RefactorRename '.input('refactor \"'.expand('<cword>').'\" to:')<cr>"
When I press shortcut, I see input prompt, but after I enter new name, operation fails with RuntimeError: Cannot rename the symbol under cursor.
If I run YcmCompleter RefactorRename newname
in the same place, it works just fine. There seems to be a problem with my script
How do I get this to work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论