Fredrik Nilsson wrote (in part):
> I have made a short list of some useful commands.
>
WOW, that convinces me, let's see...
I want to copy this word so yw, but wait, I have to tell it what word,
so Mkkkklllljjjjj on over there near it and then yw and then
Mkkkkklljjjll on over to where I want it and drop it in (I hope) p then
I want to do some insert, let's see is it i or a, or was it I or A, I
forgot since yesterday, well let me try it... WHOOPS! I lost what I was
doing, pressed dd in error and deleted the whole line. no problem, I am
a geek and want to sit here all night because it's like making love to
my keyboard, gives me a good feeling to press these keys till my fingers
are numb.
I don't care how many wonderful commands it has, TRASH IT! I can't see a
simple editor that allows you to edit a few lines taking any more than
20K, so space or features are not a issue here, it's SIMPLICITY. Cursor
moves with the arrow keys, insert mode always on (backspace eats) and a
simple exit like ESC and it asks you if you want to save changes. More
is not better for simple tasks. Anything that needs more than that and I
will use a GUI editor and FTP the file over if I have to. It's not 1978
anymore! Isn't there something like the Mac user interface guidelines
available online?
----------------------------------------------------------------------
> Exit Commands
> ----------------------------------------------------------------------
> ZZ Write (save) and quit file
> :x Write (save) and quit file
> :wq Write (save) and quit file
> :w Write (save) file
> :w! Write (save) file, overriding protection
> :30,60w newfile Write from line 30 through line 60 as newfile
> :30,60w>> file Write from line 30 through line 60 and append to file
> :w %.new Write current buffer named file as file.new
> :q Quit file
> :q! Quit file, overriding protection (e.g. changes made)
> ----------------------------------------------------------------------
> Movement Command
> ----------------------------------------------------------------------
> h, j, k and l Left, down, up and right
> w, W, b, B Forward, backward by word
> e, E End of word
> ), ( Beginning of next, previous sentence
> }, { Beginning of next, previous paragraph
> ]], [[ Beginning of next, previous section
> H Top line of screen
> M Middle line of screen
> L Last line of screen
> Ctrl-F Ctrl-B Scroll forward, backward one screen
> /pattern Search forward for pattern
> ?pattern Search backward for pattern
> G Move to last line in file
> nG Move to line number n
> ----------------------------------------------------------------------
> Editing Commands
> ----------------------------------------------------------------------
> i, a Insert text before, after cursor
> I, A Insert text before beginning, after end of line
> o, O Open new line for text below, above cursor
> r Replace character
> R Type over (overwrite) characters
> cw Change word
> cc Change current line
> x Delete character under cursor
> X Delete character before cursor
> dw Delete word
> dd Delete line
> yw Yank (copy) word
> yy Yank current line
> p, P Put deleted/yanked text after, before cursor
>