通过查看 UltiSnips 文档:h UltiSnips-triggers
说:
You can define the keys used to trigger UltiSnips actions by setting global
variables. Variables define the keys used to expand a snippet, jump forward
and jump backwards within a snippet, and list all available snippets in the
current expand context. The variables with their default values are: >
g:UltiSnipsExpandTrigger <tab>
g:UltiSnipsListSnippets <c-tab>
g:UltiSnipsJumpForwardTrigger <c-j>
g:UltiSnipsJumpBackwardTrigger <c-k>
所以在你的 ~/.vimrc` 文件中设置这样的东西:
let g:UltiSnipsExpandTrigger = '<f5>'
但是,您可能需要重新考虑您的<tab>
映射。我建议您删除它们并在正常模式和或在可视模式下使用>>
or来执行初始缩进/取消缩进,然后通过redo 命令重复操作。如果您缩进/取消缩进太远,那么只需通过.<<
>
<
.
u
如需更多帮助,请参阅:
:h >>
:h .
:h u