2007年5月31日星期四

mapping to be

If you want to completely swap caps lock and escape, you have to replace the
"Lock" on caps lock. Drop this file in your home directory(don't copy the start&end lines!!):
-----------start------------
! Swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock
------------end-------------
and call it ".speedswapper". Then open a terminal and type
$ xmodmap .speedswapper
and you'll be twice as efficient in vim.
Who needs caps lock anyway?

0 评论: