spf13 / spf13-vim

The ultimate vim distribution
http://vim.spf13.com
Apache License 2.0
15.56k stars 3.63k forks source link

strange problem when start vim #695

Open liudonghua123 opened 9 years ago

liudonghua123 commented 9 years ago

When I start vim, I always get a strange problem, the bottom line is always duplicate like this:

NORMAL ›› 1: ‹‹ [unix] ‹ 100% : 0: 0
1: 1: Press ENTER or type command to continue

I have tried update or reinstall, but nothing helps. I run "vim -V9vim.log" to see the log of startup. I found the following error message!

Searching for "/usr/share/vim/vim73/ftoff.vim" chdir(/usr/share/vim/vim73) fchdir() to previous dir line 57: sourcing "/usr/share/vim/vim73/ftoff.vim" Error detected while processing /usr/share/vim/vim73/ftoff.vim: line 11: E216: No such group or event: filetypedetect * finished sourcing /usr/share/vim/vim73/ftoff.vim continuing in /Users/liudonghua/.vimrc.bundles

My OS is Mac 10.10.1 vim --version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Sep 9 2014 16:30:51) Compiled by root@apple.com ......

Can anyone help me!

liudonghua123 commented 9 years ago

I updated my vim by 'brew install macvim --override-system-vim ; brew linkapps ; alias vim="/Applications/MacVim.app/Contents/MacOS/Vim" ', there were not duplicate bottom line, but similar error occured. (I can't install vim using "brew install vim" because download link 'http://ftp.debian.org/debian/pool/main/v/vim/vim_7.4.430.orig.tar.gz' is dead )

Searching for "/Applications/MacVim.app/Contents/Resources/vim/runtime/ftoff.vim" chdir(/Applications/MacVim.app/Contents/Resources/vim/runtime) fchdir() to previous dir line 57: sourcing "/Applications/MacVim.app/Contents/Resources/vim/runtime/ftoff.vim" Error detected while processing /usr/local/Cellar/macvim/7.4-73_1/MacVim.app/Contents/Resources/vim/runtime/ftoff.vim: line 11: E216: No such group or event: filetypedetect * finished sourcing /Applications/MacVim.app/Contents/Resources/vim/runtime/ftoff.vim

mohitsoni commented 9 years ago

I think this happens because your Mac's default vim is older. I would suggest you to try following:

$ brew update
$ brew install vim

Above should install the latest vim.

Then you should check which version of vim comes first on your path:

$ which vim

It should be /usr/local/bin/vim. If it's /usr/bin/vim, then you can rename:

$ sudo mv /usr/bin/vim /usr/bin/vim.system

After following above steps, you should not see this weird behavior.

wnear commented 9 years ago

I tried this and it woks. It can be closed.

ghost commented 9 years ago

@spf13 : are we still supposed to work on vim 7.3? I wonder if we should just prevent installation totallly on a vim 7.3 install if no one will be dedicated to making sure that it continues to work there.

spf13 commented 9 years ago

Fine with me. We should ask for volunteers first though.

Steve Francia spf13.com @spf13

On Mar 7, 2015, at 3:54 AM, Johnny Robeson notifications@github.com wrote:

@spf13 : are we still supposed to work on vim 7.3? I wonder if we just just prevent installation totallly on a vim 7.3 install if no one will be dedicated to making sure that it continues to work there.

— Reply to this email directly or view it on GitHub.