You are not logged in.

#1 2008-07-30 17:38:55

Back2Cali
Member
From: Germany
Registered: 2006-02-26
Posts: 223

[solved] vim problem

Hi!

This might be the most stupid question at all but I couldn't figure out how to solve it:
I'm running yakuake on KDE4.1 and recently switched from using nano as my editor of choice to vim.
Now the problem that I have is whenever I'm starting vim as a regular user, it will be in insert mode right away and it is not possible for me to switch to the visual mode. Whenever I hit the ESC key nothing happens and I will still be in insert mode.
The funny part is, when I use sudo and start vim everything just works fine.
And this happened on two ArchLinux computers the same way. I have searched the forum for some solution and also google but found nothing that was close to this problem.

Is there a vim expert here that might help me out of this? Thanks a lot!

Last edited by Back2Cali (2008-07-30 18:40:48)

Offline

#2 2008-07-30 18:23:18

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: [solved] vim problem

Do a :scriptnames in your vim and see if you're sourcing something like mswin.vim.

Offline

#3 2008-07-30 18:34:07

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: [solved] vim problem

That sounds like evim, the "easy vim". Check if you have an alias like "vi=evim", or check your ~/.vimrc (make sure it doesn't set "insertmode"). "evim" is only one letter away from "evil".

Not related, but note that by default the vi and vim executables are not the same. I have "alias vi=vim" in my ~/.bashrc.

Offline

#4 2008-07-30 18:40:10

Back2Cali
Member
From: Germany
Registered: 2006-02-26
Posts: 223

Re: [solved] vim problem

Thanks for the quick help! Deep in my old .bashrc there was an alias to start vim as vim -y, which is easy mode like evim. I removed it, checked it and felt really stupid... wink

Thanks!

Offline

Board footer

Powered by FluxBB