Reputation: 28022
I am on MacOS (Sierra), I am opening an empty new file with the following command
vi test_file.txt
But then I get this error in the terminal in red color.
Error detected while processing VimEnter Auto commands for "*": E492: Not an editor command: ++nested if &filetype !~# '^git' | call kite#onboarding#call() | endif Press ENTER or type command to continue
It seems to overlay on top of any test if present in an opened file.
Any idea what I should try to correct this?
Upvotes: 1
Views: 2643
Reputation: 5212
uninstall Kite vim sudo rm -rf $HOME/.vim/pack/kite/
will solve the issue.
Upvotes: 2
Reputation: 207345
Start Terminal and run the following to open your vim
startup file with TextEdit. i.e. without needing vim
, so that you can put it right.
open -e $HOME/.vimrc
Upvotes: 0
Reputation: 11790
Probably you have some kind of error on your vimrc, try loading vim without any setting:
vim -u NONE test_file.txt
After editing your file you can try to figure out waht the problem is.
Upvotes: 0