3 ms·
It's not as precise as vi movement, but for most command line activities I find the Emacs-like movements sufficiently practical: M-b: back one word M-f: forwa
by Gorgor 10y ago
It's not as precise as vi movement, but for most command line activities I find the Emacs-like movements sufficiently practical:
M-b: back one word
M-f: forward one word
C-a: beginning of line
C-e: end of line
I also don't like to use the arrow keys because they are so far away, so:
C-b: back one character
C-f: forward one character
C-p: previous command
C-n: next command
And since I'm making a list now anyway:
C-k: Kill to end of line.
C-u: Kill to beginning of line.
C-y: Yank (put/paste) last killed string. You can then cycle further through the kill ring with M-y.
But I have a question concerning Emacs movement: M-b and M-f are rather similar to vim's b and e, respectively, meaning they don't jump to the beginning/end of the non-whitespace-string. That's why vim has B and E. Is there anything similar in Emacs?