Eric Weir wrote:
On Jan 17, 2012, at 5:21 AM, Dotan Cohen wrote:
If you use CapsLock often, you might want to read this:
http://vim.wikia.com/wiki/Insert-mode_only_Caps_Lock
Thanks, Dotan. Of the many suggestions made here I need to make some decisions
about ways to keep myself apprised of the status of Capslock and whether I'm in
visual mode or not.
I have CapsLock and Esc swapped, but I do use CapsLock when typing SQL
into code that someone else may maintain. I have a bit KDE widget that
lights up whenever CapsLock is on, for the simple reason that I never
look at my keyboard.
Now that I'm using vim I use Esc a lot more than I ever did previously, and have
often wished I the Esc key on my computer--a 13" MacBook--was larger. Would you
mind sharing the mappings you use to swap the Capslock and Esc keys? [I take it the
remapping would only be in effect in vim?]
This affects all programs under Linux:
a) put in your .profile: (assuming ksh/bash)
if [[ $(tty) = "/dev/pts/0" ]]; then
if [[ -r ${HOME}/.xmodmap ]]; then
xmodmap ${HOME}/.xmodmap 2>/dev/null
fi
fi
b) put in a file called $HOME/.xmodmap:
remove Lock = Caps_Lock
keysym Caps_Lock = Escape
This doesn't swap CapsLock and Escape; rather, it makes CapsLock be the
same as Escape. I seldom have any desire for the capslock.
HTH,
Chip Campbell
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php