Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs cheat sheet that lists equivalents to everyday vim commands [closed]

There were two things that I want to know how to do in Emacs (23.2, *nix):

  1. Go to the first character after indentation in a line
  2. Go to the first character that's the equivalent to a given character (an equivalent to vim's fx command that goes forward until it hits the x character; maybe C-s (incremental search) is the best way to do this)

But, I think it would be better if I had a cheat sheet that listed navigational bindings. Maybe Emacs (self-documenting) can do this on it's own. Is there a list of commands that are equivalent to vim's default commands anywhere? How about a list of navigational key-bindings in Emacs?

like image 768
Yktula Avatar asked May 16 '10 23:05

Yktula


People also ask

What does F do in Vim?

If you press "F", Vim will move the cursor backwards instead of forward. Given the previous sentence, if pressed "Fq", and the cursor was at the end of the line, it would move to the "q" in "quick".

What does W do in Vim?

For example, :w saves your file and :q allows you to exit Vim.


2 Answers

  1. M-m (back-to-indentation) will do this.
  2. You're right, C-s x is the way to do that.

Regarding a cheat sheet, try starting with C-h b. That will show you all the active keybindings, and you can drill down to find out what each of them does in more depth.

The ViKeys page on EmacsWiki should also be a good resource for you.

like image 73
Steve Simms Avatar answered Oct 11 '22 08:10

Steve Simms


Probably this will help you too:

vim7-emacs21-cheatsheet of freezing hell

(or others who find this question)

like image 42
sastanin Avatar answered Oct 11 '22 08:10

sastanin