[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A few simple questions

From: Kai Großjohann
Subject: Re: A few simple questions
Date: Sat, 10 May 2003 16:33:52 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux)

Wang Yin <address@hidden> writes:

> 1. How can I do something like f command in vi? When I'm looking at a
>    line, I want to move to a charater, say 'a'. How can I do something
>    like "fa" in Emacs, and how to I repeat this command to go to
>    following a's?

People have mentioned C-s before.  It's not the same as vi's f
command, but maybe good enough.

> 2. How do I move like "W" in vi. That is, move to the next white space
>    delimited "Word"?

I think this doesn't exist in Emacs.  Emacs has the equivalent of
"w", but no equivalent of "W".  Maybe C-M-f comes close: whereas M-f
would stop at the dash in foo-bar, C-M-f would not.  (M-f is the
Emacs equivalent of vi's "w".)

> 3. How do I change DOS lineend file into UNIX lineend file quickly? I
>    don't like to C-x RET c ....-unix C-x C-f...!

Emacs automatically recognizes the EOL convention of files it reads.
So, normally, C-x C-f is enough.  After that, saving with C-x C-s
preserves the EOL convention.

file-error; Data: (Opening input file no such file or directory ~/.signature)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]