ultisnips 安装使用的 是Vundle
Plugin 'SirVer/ultisnips'
Plugin 'honza/vim-snippets'
下面是我的配置
let g:UltiSnipsExpandTrigger = ""
let g:UltiSnipsJumpForwardTrigger = ""
let g:UltiSnipsJumpBackwardTrigger=""
但是使用时却不能根据文件自动补全
.vim 目录结构为
├── bundle
│ ├── Emmet.vim
│ ├── Vundle.vim
│ ├── ultisnips
│ │ ├── COPYING.txt
│ │ ├── ChangeLog
│ │ ├── README.md
│ │ ├── UltiSnips
│ │ ├── ...
│ │ ├── syntax
│ │ └── utils
│ └── vim-snippets
│ ├── LICENSE
│ ├── ...
│ ├── UltiSnips
│ └── snippets
谢谢
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
有可能是因为你编译 vim 时同时开启了 python2 和 python3 的支持,在 .vimrc 设置一下插件SirVer/ultisnips 使用的 python 版本即可。