I've been using Linux for years now and my daily driver is Debian Jessie. I have been using vim for about 2 years but my vim skills are sub-optimal (I still really only use the basics).
I've decided that I want to improve my vim usage and I recently read a suggestion that before you start with anything too advanced, get to know the vimtutor inside out (complete it daily for at least a week).
However vim tutor doesn't work. I recall this issue when I first started with vim and just manually copied the tutor file. My guess is that it's to do with something I "configured" before I knew what I was doing. But I'd like to fix it now if I'm going to be doing it daily.
Here's the error I get (within vim) when I run
"$VIMRUNTIME/tutor/tutor.vim" [New DIRECTORY] Error detected while processing command line: E471: Argument required Press ENTER or type command to continue
Pressing enter just leaves me editing an empty file. If I try to quit out of that (
:q) I get:
"nocp" [New File] --- Options --- noloadplugins scroll=16 Press ENTER or type command to continue
Again enter leaves me in an empty file. Quit again gives me:
E173: 1 more file to edit
And quit a 3rd time takes me back to the command line...!?
What I've tried:
- checking out ln 471 of
/usr/share/vim/vim74/tutor/tutor.vim: only goes to line 200 so the offending line must be somewhere else?!
- reinstalling vim & vim-gtk (
apt-get install --reinstall vim vim-gtk)
vim-tiny(it wasn't installed).
The last few lines of the vimtutor script (
# Use Vim to copy the tutor, it knows the value of $VIMRUNTIME # The script tutor.vim tells Vim which file to copy $VIM -f -u NONE -c 'so $VIMRUNTIME/tutor/tutor.vim' # Start vim without any .vimrc, set 'nocompatible' $VIM -f -u NONE -c "set nocp" $TUTORCOPY