London guy
London guy

Reputation: 28022

How do I resolve this error when I try to open a file with vim

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

Answers (3)

P Li
P Li

Reputation: 5212

uninstall Kite vim sudo rm -rf $HOME/.vim/pack/kite/ will solve the issue.

Upvotes: 2

Mark Setchell
Mark Setchell

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

SergioAraujo
SergioAraujo

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

Related Questions