|
From: | Kevin Rodgers |
Subject: | Re: How can I do these in Emacs? |
Date: | Mon, 21 Apr 2003 14:49:44 -0600 |
User-agent: | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
David Masterson wrote:
Eli Zaretskii writes:From: wang yin <wy@wanglab.com>1. How can I do something like a "o" command in vi with Emacs? I always C-e to the end of the line and press RET. Are there any faster ways?Is "C-o" what you want (I don't really know what does "o" do in vi)?It opens a new line after the current line ("O" opens before the current line) regardless of where you are in the line whereas "C-o" (in emacs) splits the line at the current point.
(defadvice open-line (before a-la-vi activate) "When called interactively, open the new line after the current line (like vi)." (if (interactive-p) (end-of-line))) -- <a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
[Prev in Thread] | Current Thread | [Next in Thread] |