Friday, March 4, 2011

Re: nocompatible always goes to insert mode

On Mar 4, 5:59 am, Exiges <accou...@splut.com> wrote:
> I'm tearing my hair out with this problem.
>
> When I try to edit a file, it immediately takes me into "insert mode",
> and I have to hit escape before I can navigate.
>
> If I remove the line "set nocompatible" from my /etc/vimrc then the
> problem goes away, but I require compatiblity mode for my autocmd's
> (ie. remembering positions in files etc)
>
> I must be missing a setting which determines what the defaults for
> "nocompatiblity" does.
>
> But I thought the default mode for "nocompatible" was "Normal" ?
>
> If so, why is it always going into insert mode ? How do I change it
> back ?

You wouldn't happen to be launching Vim with a -y option, or from an
executable/command line named evim or eview? Check for an alias as
well if you launch from the command line. Also setting 'insertmode'
anywhere in your config files could cause this, or using
the :startinsert command, but you say it's only the one "set
nocompatible" line.

You can try

:verbose set insertmode?

once Vim is started (use CTRL-O or CTRL-L to get out of insert mode if
<Esc> doesn't work), to see if it is set and where it was set.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment