e
n " Automatically detect file types.
set nocompatible " We don't want vi compatibility.
" Add recently accessed projects menu (project plugin)
set viminfo^=!
" Minibuffer Explorer Settings
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1
" alt+n or alt+p to navigate between entries in QuickFix
map <silent> <m-p> :cp <cr>
map <silent> <m-n> :cn <cr>
" Change which file opens after executing :Rails command
let g:rails_default_file='config/database.yml'
syntax enable
and here’s the error I got:
Espresso:ruby PowerBook$ vim .vimrc
".vimrc" [New File]
Error detected while processing /Users/PowerBook/.vimrc:
line 2:
E163: There is only one file to edit
Press ENTER or type command to continue
I’m new to vi.Could anyone give me a reference of all this syntaxes mean? It’s so overwhelming for me right now.
In your case the problem is in the 1st and 2nd line.
These
eandnare Vi(m) (ex) commands on the start of the lines (but in.vimrcthey don’t need the:prefix.See their documentation at http://www.polarhome.com/vim/manual/v72/editing.html#:edit_f and http://www.polarhome.com/vim/manual/v72/editing.html#:next .
So they mean
eedit file but there is no argument, so it’s probably an error (usually most of the people doesn’t specifyecommand(s) in their.vimrcnmeans next (buffer), but as far as You does not specify more files on the commandline to startvim, it can’t work, as there are no more buffers.IMHO you should delete those commands from your
.vimrc.HTH