Re:Mastering Emacs
by lottin on Saturday May 23, 2015 @04:46PM
(#9594317)
Key bindings are totally a matter of personal preferences. I like Emacs-style bindings better. The only thing I think vi in my opinion does better is copying and deleting lines (yy, dd, p), which in Emacs is not so simple for such a common operation.
[ Parent
| on HN ]
ctrl-k ctrl-y ?
Not quite the same. For instance, to duplicate a line in Emacs you have to go to the beginning of the line, kill it and then yank twice, and it doesn't even work always, particularly at the end of a buffer. In vi, it's just yyp. No corner cases.
I've been using emacs for a long time. When I duplicate a line I don't even know that I'm following the steps you mention, I just do it on autopilot.
What I like most about emacs though is that I rarely have to do repetitive tasks because I can write a bit of lisp code to do them instead.
Or you can go to the beginning of the line, press Control-space (set mark), press Control-e (end of line), then Meta-W (copy), and Control-y (paste).