LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-16-2009, 11:05 PM   #1
wheeliee
Member
 
Registered: Aug 2008
Posts: 47

Rep: Reputation: 15
Making the best of your keyboard (xmodmap'ing and other related things)


Hello,

One of the the advantages always listed in "vim pros and cons" is that you're always close to the home row ... except when you have to hit the ESC key to exit out of insert mode. I was thinking the best solution to this would be to map the Caps Lock key to ESC (as the Caps Lock key is seldom used anyway). That was until I found out Ctrl + [ in vim can also get you out of the insert mode.

After some thinking, I've xmodmap'd the Compose key to the Menu key, and the left Alt key to ESC (because I use ESC in bash often).

Anyway, I was wondering -- could you guys share some of the modifications (whatever they be) you've made to optimize keyboard-related tasks?


-wheelie

Last edited by wheeliee; 03-16-2009 at 11:10 PM.
 
Old 03-16-2009, 11:43 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Enter :help map.txt for the help pages on mapping the keys for vim instead of globally.

For the caps lock key, I don't know if that is possible as it may not produce a code.

Also look at the shell built in command 'bind'.
You could use it in a wrapper to call vim. Many of the functions have have vi- in there name but are not bound to any keys. I wonder if vim uses these bindings if they exist, or if these are just used by bash in the vi mode.

Last edited by jschiwal; 03-17-2009 at 12:02 AM.
 
Old 03-18-2009, 11:26 PM   #3
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
http://en.wikipedia.org/wiki/Vi

Food for thought.
The ESC key used to be where the Tab key is now.

caps lock actually is better for typing long strings of caps. This is both quicker than properly alternating shift keys for each letter and because it keeps you from the bad habit of holding down the shift with one pinkie and attempting to type the rest of the word.

I would think that most people don't use both Backspace and Delete the same or attempt to make them have the same functionality so this may be a good candidate.

Probably the easiest thing to do is change your xmodmap and what not to force your caps lock to be escape.
 
  


Reply



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
removing mysql-server and all things related townie Linux - Server 4 12-23-2008 11:32 PM
Making a Linux-related website. Need some hints. yezu Linux - General 4 05-09-2007 07:58 AM
Making a Server for several things...I want a new ISP, suggestions? spartanM19SSM Linux - Networking 5 10-10-2006 03:27 PM
amsn 0.95 execution and some things related nightrider Linux - Newbie 2 02-07-2006 05:56 AM
Visa, and other bank related things dlublink Linux - Security 2 03-17-2005 04:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:16 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration