Emacs cheat sheet that lists equivalents to everyday vim commands [closed]
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this questionThere were two things that I want to know how to do in Emacs (23.2, *nix):
- Go to the first character after indentation in a line
- 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?
M-m
(back-to-indentation) will do this.- 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.
Probably this will help you too:
vim7-emacs21-cheatsheet of freezing hell
(or others who find this question)
This answer gives you a few alternatives for the beginning-of-non-whitespace function (with slightly different behaviours for comments and what happens if you do it twice).
精彩评论