help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: some vi equivalents please?


From: rustom
Subject: Re: some vi equivalents please?
Date: Sat, 1 Nov 2008 07:52:23 -0700 (PDT)
User-agent: G2/1.0

Well the post here was as messed up as on the emacswiki -- Sorry
Shortening the lines and trying again.
The following should be pasted into org-mode to read
* Vi - Emacs
This table does not cover basic commands like character motion

| Command                 | Vi              |
Emacs                     |
|-------------------------+-----------------
+---------------------------|
| transpose-char          | xp              | C-
t                       |
| transpose-word          | dwwp            | M-
t                       |
| indent                  | >>              | C-x
TAB                   |
| search                  | /pat            | C-
s                       |
| substitute              | :%s/pat/subs    | M-% or M-C-
%              |
| substitute variables    | :s/pat/\1 \2    | replace-regexp then \1
\2 |
| search word/identifier  | /<word>
| ??                        |
| delete lines            | :g/pat/d        | flush-
lines               |
| set line numbers        | :se nu
| ??                        |
| show tabs&newlines      | :se list
| ??                        |
| change file formats     | :se ff=unix/dos
| ??                        |
| shell cmd               | :!cmd           | M-!
cmd                    |
| matching ({[            | %               | M-C-f/b
(??)              |
| filename on bottom line | %               | see code
below            |
| sort next n lines       | n!!sort
| ??                        |


reply via email to

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