LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-30-2009, 06:52 PM   #1
andorxor
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
Vim with custom keymaps


Hello there,

I use Vim with some custom mappings for some keys. This works fine in the lab at uni.

Using the same Vim configuration (.vimrc) at home, I get problems for the following keys for which I have custom maps:
Insert, Delete, PageUp, PageDown, Home, End.

When I press them, their original functions are executed, e.g. pressing the Del key will delete the current character instead of performing my new assignment.

Things I have tested out already:
- Using US keyboard map (instead of native language map)
- Using Xterm as terminal (instead of Yakuake)


I'm using Suse 11.0 with KDE 3.5.9. Vim is running in terminal mode.
Any suggestions for what may cause this are really appreciated.
 
Old 01-30-2009, 07:00 PM   #2
digitelle
Member
 
Registered: Jan 2009
Posts: 57

Rep: Reputation: 16
open VIM, hit ESC and type :help
Or have a look @ this.
 
Old 01-30-2009, 07:35 PM   #3
andorxor
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Please reread my question.

I do know how to map keys. The problem is that the 6 listed keys do not map on my local machine as they should.

An example mapping:
Code:
nmap <PageUp> :bnext
This works fine on Linux at uni, but not on my local machine.
 
Old 01-13-2010, 03:28 PM   #4
Carsto
Member
 
Registered: Aug 2009
Posts: 97

Rep: Reputation: 17
One conclusion only.

Your machine does not read the modifier keys as they should be read. Maybe write a script to report on every key press and run it on both keyboards will show up something. Look for the differences in outputs. The lhs and rhs do not match up with what is epxected by the comment part of the map.
 
Old 01-13-2010, 03:36 PM   #5
Carsto
Member
 
Registered: Aug 2009
Posts: 97

Rep: Reputation: 17
Will it run on different apps?

Vim is an editor if I'm correct. Yet here it is used to modify UTF-8 codes.

Is it correct to assume then that once you have loaded the keymap it will be active on both, say, the desktop and any other app like Open Office and Abiword?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
keymaps loading error bipins1979 Red Hat 0 08-24-2006 12:44 AM
Keymaps!! egz Slackware - Installation 2 05-30-2005 02:20 PM
Gnome problem with keymaps crazydemon Linux - Software 1 01-03-2005 04:24 PM
Shell prompts and keymaps amnesty_puppy Linux - Newbie 8 08-17-2004 06:52 PM
Fluxbox keymaps fuxored Linux - General 2 06-02-2002 03:48 PM


All times are GMT -5. The time now is 07:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration