0

I've been using Vim for about a year now (so still a newbie), but this morning UltiSnips stopped working for me. Any help would be really appreciated!

When I run :UltiSnipsEdit! the console returns E492: Not an editor command. However what's weird is that I can still run :h UltiSnips and I get the help menu. Moreover, UltiSnips shows up twice under :scriptnames as

~/.vim/bundle/ultisnips/plugin/UltiSnips.vim
~/.vim/bundle/ultisnips/after/plugin/UltiSnips_after.vim

Other relevant info - I am running MacVim. Below is a minimum .vimrc which shows this error:

set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'SirVer/ultisnips'
Plugin 'honza/vim-snippets'
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<tab>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
let g:UltiSnipsEditSplit="vertical"
call vundle#end()
filetype plugin indent on
  • Did you make any changes to vim or your .vimrc recently? – Herb Wolfe Oct 29 at 21:10
  • Not recently, no – desiigner Oct 29 at 21:30
  • That you get E492 suggests this line has issues. what is the output of :verbose command UltiSnipsEdit ? – D. Ben Knoble Oct 29 at 23:14
  • I get No user-defined commands found – desiigner Oct 30 at 17:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.