all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Equivalent of vim's o or O commands
@ 2008-02-05 19:22 Brian Adkins
  2008-02-05 19:47 ` Brian Adkins
  0 siblings, 1 reply; 9+ messages in thread
From: Brian Adkins @ 2008-02-05 19:22 UTC (permalink / raw)
  To: help-gnu-emacs

I would like to have the equivalent of vim's o or O commands in emacs.
The o command will open a new line below the cursor and position the
cursor properly indented (if autoindent is on). The O command does the
same but opens the line above the cursor.

In emacs, C-o will open a line above the cursor if the cursor is at
the beginning of the line (but won't properly indent), but splits the
line if the cursor is within some text.

This is such a common operation for me, that I would like to bind it
to a simple combination instead of requiring C-e C-j.

I failed to find a good "emacs for vim users" reference on Google.
There are some partial ones that are helpful, but I would like a more
complete reference as I consider transitioning from vim to emacs. If
anyone knows of one, I'd appreciate a link.

Thanks,
Brian Adkins


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-02-09 11:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-05 19:22 Equivalent of vim's o or O commands Brian Adkins
2008-02-05 19:47 ` Brian Adkins
2008-02-06  0:49   ` Jason Earl
2008-02-06 22:07     ` Brian Adkins
2008-02-06 22:45       ` Lennart Borgman (gmail)
     [not found]       ` <mailman.7061.1202337917.18990.help-gnu-emacs@gnu.org>
2008-02-07 20:44         ` Brian Adkins
2008-02-07 22:06           ` Samuel Karl Peterson
2008-02-07 23:14             ` Lennart Borgman (gmail)
     [not found]             ` <mailman.7125.1202426051.18990.help-gnu-emacs@gnu.org>
2008-02-09 11:11               ` Fabian Braennstroem

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.