On Sat, 07 Mar 2009, Michael Henry wrote:
> The thing that always stops me in my tracks, though, is choosing a
> command key. By default, screen uses control-A as the command key. I
> have long-standing muscle memory of using control-A at the Bash prompt
> to move to the start of line, and I think it would drive me crazy to
> keep invoking screen by mistake.
On the contrary vim works very well with screen. ctrl-a is used by vim
to increment a character by I don't need it, so that while using vim
it can freely switch to other screens. For the bash shell I use the
vi key binding. Type "esc 0" will move to the beginning just the same
as vim. In fact programs (including bash) that use readline should
use vi key binding by customizing the ~/.inputrc
# set editing mode to vi-like key binding
set editing-mode vi
set keymap vi
set convert-meta on
I used to puzzle why edit command key for bash is so hard to memorise,
it turned out that the default key binding for bash is emacs.
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩113 杜甫 旅夜書懷
細草微風岸 危檣獨夜舟 星垂平野闊 月湧大江流
名豈文章著 官應老病休 飄飄何所似 天地一沙鷗
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---