unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Hard to switch from vi
Date: Sat, 21 Oct 2006 23:00:23 +0200	[thread overview]
Message-ID: <87y7r9tme0.fsf@hans.local.net> (raw)
In-Reply-To: <BBCWg.156$Wy.104@newsfe02.lga> (Wen Weng's message of "Mon\, 09 Oct 2006 21\:22\:39 -0400")

Wen Weng <WenWeng@charter.net> writes:

>>
>> First, I don't know of any comparison of the number of keystrokes.
> Well, that's just my experience so far after one week of using emacs.
>> Secondly, other things are much more important.
>>
> Actually, the number of keystrokes is number one importance to me and
> to a lot of people, I guess.
>>

There are only two editors.

First of all, I'm an Emacs user but some years ago I was also
fascinated with the editing approach of vi.  (I think that it is the
only remaining MODE editor still in use.)  First I found out that vi
is no match for Emacs--vim is--but keep in mind that I'm writing here
mainly from the point of view of editing and keystrokes ;-).

I practised vim for approximately half a year quite intensively, till
I realised that even with more practise this hadn't had accelerated my
editing in comparison to Emacs.  I used the following table [*]
comparing the necessary keystrokes.  Please take it with a grain of
salt, the table is not very scientific but I think it shows that
Emacs--in the worst case--does not look so bad in comparison to vim's
keystrokes.  When you take into consideration that you often have to
switch the modes and forced to add ESC (where you have to leave the
home position, or C-[) and switching back to the editing mode, I think
it is a clear draw 8-).

No, I can't proof it with a stop watch, probably very few could
because it takes so (very) long to become really proficient in the
methodologies around the respective keyboard-maps, but still, this
should be food for thought.

If you intend to use the other fast editor stay with vim, if you
intend to use an additional operating system switch to Emacs.

[*] (then I did not know about table.el unfortunately 8-)

==============================
prerequisites:
1.) German keyboard layout
2.) Operating the modifier keys with thumb or outer palm for
   speed reason
3.) Subjective guess of shortcut commonness (first column)

COMMON STUFF:
P       -	keys	input	keys	normal	keys	remark
3       M-digit	2	C-o	3	digit	1	inserting only ONE digit

MOVEMENT

3	M-f	2	S-right	2+1	w/W	1+1	vim: forward WORD or word!
3	M-b	2	S-left	2+1	b/B	1+1	vim: forward WORD or word!
	M-fb	3			e	1
	M-bf	3			ge	2
	C-f	2	right	1+2	l	1
	C-b	2	left	1+2	h	1	
	C-a	2	pos1	1+2	0	1
2	M-m	2	C-o,^	3	^	1
2	M-a	2	C-o,{	4	{	2
2	M-e	2	C-o,}	4	}	2

MARKING

2	C-SPACE 2			ma	2
2	C-uSPC  3			``	3


SEARCHING

3	C-s,RET	4			f/F	1+1
		4			/,RET	4
		C-s	2			f	1	emacs do some other C-command	

2	C-l	2			z.	2
3	C-x,o	4	C-ow,n 5	C-ww	3

	TYPOS

2	accents	2	C-k,xx	5	iC-k,xx	6
3	M-/	2	C-n|p	2	iC-n|p	3
3	C-t	2	deldel	4+2	hxp	3
2	C-_	2	C-o,u	3	u	1
3	C-y	2			p/P	1
2	M-y	2	C-r,"xp 6	"xp	4
2	M-l	2			
2	M-c	2			~	1
2	M-t	2			dwbp	4
1	C-xt	3			:m+	3
2	C-o	2			O	2	start editing new line
2	C-ao	3			O,ESC	3	insert an empty line

DELETION

2	C-w	2			d`a	4
2	C-d	2	del	1+2	x	1
3	BSP	1			X	2
3	M-BS	2	C-w	2	db|B	2+1
3	M-D	2	C-odw	4	dw|W	2+1
3	C-k	2	C-o,D	4	D	2
3	M-0,C-k	5	C-ou	3	C-u	2
The following line is redundant now its C-S-BKS 3 
2	C-a,C-k	5	C-odd	5	dd	2
1	C-x,DEL	4			d}	2
1	M-k	2			d{	2

COPYING

	C-k,C-y	5			Y	2
	C-a,C-k,C-y8			yy	2

FORMATTING

1	M-^	2			gJ	3	Join lines without whitespace
2	C-a,TAB	4			C-t	2
	M-^	2			C-d	2
1	C-M-\	4			vap>	4
	C-x,TAB	4
2	M-u	2			guw	3
	M--u	3			gub	3
	M-bu	3			vawu	4
2	M-q	2			vapgq	5

COMMANDS

3	C-h,a	4			:h	3
2	M-xp	3			@:	4
	C-z	2			.	1
1	C-xc	3+1			:xa	4
2	C-x,`	5			:cn	4

	FILES and BUFFERS

2	C-x,3	4			C-wv	3
2	C-x,2	4			:sp	4
3	C-xf    3			:e	3
1	C-x,{|} 5			C-w,>|<	5
1	C-x,+|-	4			C-w,+|-	4
2	C-xs	3			:w	3
1	C-x,s	4			:xa	4
2	C-xb	3			:ls	4
2	C-x,bRET5			:bn	4
1	C-x,4bRET6			C-w^	3
3	C-x,o	4			C-ww	3
3	M-d,C-x,o7			C-wh	3
2	C-x,4f	5			C-w
2	C-x,1	4			C-w,o	4
2	C-x,k	4			:q	3
1	C-xr	3			:vie


-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany

  parent reply	other threads:[~2006-10-21 21:00 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-08 23:32 Hard to switch from vi Wen Weng
2006-10-09  0:12 ` Ignacio Mondino
2006-10-09  7:10   ` Lennart Borgman
2006-10-09 10:57     ` Jeremy Hankins
2006-10-09 14:47       ` Lennart Borgman
2006-10-09 17:49         ` Jeremy Hankins
     [not found]     ` <mailman.7914.1160393911.9609.help-gnu-emacs@gnu.org>
2006-10-10 13:03       ` Hadron Quark
2006-10-10 13:50         ` Pascal Bourguignon
2006-10-13 10:36           ` Hadron Quark
2006-10-10 14:11         ` Jeremy Hankins
     [not found]   ` <mailman.7909.1160377822.9609.help-gnu-emacs@gnu.org>
2006-10-10  1:39     ` Wen Weng
     [not found] ` <mailman.7907.1160352764.9609.help-gnu-emacs@gnu.org>
2006-10-09  0:40   ` Wen Weng
2006-10-09  1:48     ` Ajit Mylavarapu
2006-10-09  2:03 ` ext-chunye.wang
2006-10-09  2:09   ` Pascal Bourguignon
2006-10-09  2:44     ` Wen Weng
2006-10-10 12:59       ` Hadron Quark
2006-10-09  2:04 ` Pascal Bourguignon
2006-10-10 11:53   ` Hadron Quark
2006-10-11 13:35   ` martin
2006-10-09  8:52 ` Markus Triska
2006-10-09  8:53   ` David Kastrup
2006-10-09 16:28     ` Harald Hanche-Olsen
2006-10-10  1:36   ` Wen Weng
2006-10-10 11:16     ` Markus Triska
2006-10-10 13:05     ` Hadron Quark
2006-10-10 14:02       ` Pascal Bourguignon
2006-10-10 12:20   ` Hadron Quark
2006-10-10 12:32     ` Pascal Bourguignon
2006-10-10 12:38     ` Markus Triska
2006-10-10 12:57       ` Hadron Quark
2006-10-09 12:01 ` lgfang
2006-10-10  1:17   ` Wen Weng
2006-10-09 13:28 ` Ken Goldman
2006-10-09 15:06   ` Malte Spiess
2006-10-10  7:18   ` Giorgos Keramidas
     [not found] ` <45299CB0.5090003@speakeasy.net>
     [not found]   ` <4529A0E4.60403@charter.net>
2006-10-09  9:58     ` ken
2006-10-10  0:50     ` Stefan Monnier
     [not found]     ` <mailman.7911.1160387922.9609.help-gnu-emacs@gnu.org>
2006-10-10  1:22       ` Wen Weng
2006-10-10  2:23         ` Micha Feigin
2006-10-21 17:25         ` don provan
2006-10-22 19:36           ` Lennart Borgman
     [not found]           ` <mailman.132.1161545823.27805.help-gnu-emacs@gnu.org>
2006-10-23 17:15             ` don provan
2006-10-23 17:53               ` Lennart Borgman
2006-10-23 18:56               ` Floyd L. Davidson
2006-10-24  9:01                 ` Mathias Dahl
2006-10-24 10:12                   ` Floyd L. Davidson
2006-10-24 11:25                     ` Mathias Dahl
2006-10-24 18:23                       ` Floyd L. Davidson
2006-10-25 14:21                         ` Mathias Dahl
2006-10-21 21:00         ` Dieter Wilhelm [this message]
2006-10-11 22:21 ` John Sullivan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y7r9tme0.fsf@hans.local.net \
    --to=dieter@duenenhof-wilhelm.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).