Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VIM gone mad?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
foxicatko
n00b
n00b


Joined: 15 Mar 2008
Posts: 14

PostPosted: Sat Mar 15, 2008 2:58 pm    Post subject: VIM gone mad? Reply with quote

Hello.
I've been using VIM for about two years with absolutely no problems. Suddenly, about a week ago, arrow keys started to skip words instead of moving one character left/right. This word skipping is not exactly like ctrl+arrow, because it moves the cursor to the first letter of a word, then another press moves the cursor one char past the last char of that word, then to the first char of the next word and so on.

It's driving me nuts since I'm not used to hjkl and it makes editing a nightmare.

I can't recall doing anything that might have any impact on VIM's behavior - no messing up with settings, no emerges with an apparent connection to VIM, nothing.

Any ideas what might have happened or where to look for a solution?

Thx
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Sun Mar 16, 2008 12:07 pm    Post subject: Reply with quote

did you change you terminal? if not, try with an other one (eg: rxvt-unicode )
_________________
The End of the Internet!
Back to top
View user's profile Send private message
foxicatko
n00b
n00b


Joined: 15 Mar 2008
Posts: 14

PostPosted: Sun Mar 16, 2008 9:22 pm    Post subject: Reply with quote

No, I haven't done anything to my terminal, I'm using xterm-232 and AFAIK I've been using it for quite a long time now. However, I've tried Xfce's default 'terminal' and vim works great there.

Thank you for your help, I'll try to look deeper into the issue to find out why this had happened.
Back to top
View user's profile Send private message
svozil
n00b
n00b


Joined: 23 Sep 2005
Posts: 13

PostPosted: Wed Mar 19, 2008 8:00 am    Post subject: Reply with quote

I am experiencing the same problem. I wonder if somebody found a reason of this weird behavior. I tried to reinstall both term and vim, no success. Maybe something is wrong with terminfo, not sure. It works well with urxvt, but not with xterm. However, I spend a considerable time to set .Xdefaults for xterm, so I do not want to give it up that easily.
Back to top
View user's profile Send private message
Inimi
n00b
n00b


Joined: 15 Feb 2008
Posts: 30

PostPosted: Wed Mar 19, 2008 10:37 am    Post subject: Reply with quote

Hi,

did you add the USE-Flag "minimal" to vim?

I had a similar problem and this was the problem. I had to remove the "minimal" Flag.
Back to top
View user's profile Send private message
svozil
n00b
n00b


Joined: 23 Sep 2005
Posts: 13

PostPosted: Wed Mar 19, 2008 5:52 pm    Post subject: Reply with quote

Strange, when I build a minimal VIM, it behaves correctly. However, minimal VIM does not suite my needs (no syntax highlighting etc.).
Back to top
View user's profile Send private message
user118696
Apprentice
Apprentice


Joined: 16 Sep 2005
Posts: 276

PostPosted: Sat Mar 22, 2008 12:49 pm    Post subject: [solution] Reply with quote

Masking

=x11-xterms/xterm-232

into /etc/portage/package.mask and DOWNGRADING to xterm-229 solved this issue. Now waiting for the next stable release before upgrading xterm.
Back to top
View user's profile Send private message
thor_n
n00b
n00b


Joined: 30 Sep 2003
Posts: 40
Location: Slovakia

PostPosted: Wed Jul 09, 2008 7:02 am    Post subject: vim still broken in xterm Reply with quote

It still doesn't work in xterm 232, 234, 235. :(

Masking:
=x11-terms/xterm-232
=x11-terms/xterm-234
=x11-terms/xterm-235
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Wed Jul 09, 2008 8:52 am    Post subject: Reply with quote

make a new user and try with that user
it may be a user setting thats causing it
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
thor_n
n00b
n00b


Joined: 30 Sep 2003
Posts: 40
Location: Slovakia

PostPosted: Wed Jul 09, 2008 11:54 am    Post subject: Reply with quote

No, I tried with completely new user with no settings at all and same behaviour. :(
Sticking with xterm-229.
Back to top
View user's profile Send private message
bob doe
Apprentice
Apprentice


Joined: 11 Jun 2007
Posts: 207

PostPosted: Wed Jul 09, 2008 2:17 pm    Post subject: Reply with quote

When I first started playing with Linux, I used a few distros; Red Hat, Ubuntu, Mandrake, and Fedora Core. (forget which versions exactly) It seems that vi commands were different for each of these distros so I said F it and switched to nano. Been using it ever since.

nano FTW :D
Back to top
View user's profile Send private message
thor_n
n00b
n00b


Joined: 30 Sep 2003
Posts: 40
Location: Slovakia

PostPosted: Thu Jul 10, 2008 6:37 am    Post subject: please no editor flamewar Reply with quote

This thread is about arrow keys in vim jumping by words not by characters - which is a pain in the butt.

When it comes to editor preference I spend 99% of editing in emacs but vim is still great tool.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum