Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 rails.vim 但想用我自己的 ultisnips 覆盖一两个片段。
我已经创建了这些片段,但由于它们已经由 rails.vim 定义,现在触发时会出现一个菜单。我希望我的片段覆盖现有的片段以避免菜单。
解决方案是使用priority指令。所有片段默认优先级为 0。因此,将其添加到我的自定义片段顶部解决了该问题:
priority
# top of custom snippets file priority 1