News for hackers. Stuff that matters.
Re:Mastering Emacs by lottin on Saturday May 23, 2015 @07:30PM (#9594773)
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.
Re:Mastering Emacs by justinhj on Saturday May 23, 2015 @07:37PM (#9594791)
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.

Re:Mastering Emacs by fsck--off on Saturday May 23, 2015 @10:57PM (#9595163)
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).
Re:Mastering Emacs by zarkone on Sunday May 24, 2015 @01:46AM (#9595450)
Just to share experience, i've recorded Macro named dup-line and bind to `C-M-y`. And find it very handy :)