Hacker News new | ask | show | jobs
by Andrew-Dufresne 5098 days ago
After using Vim for couple of years, I recently made a switch to Emacs. Sometimes I regret it. I definitely miss Vim modal design and keybindings. Compare Vim's J (join lines) with Emacs go to the lower line and press ^ to join it with the upper one.

To copy a line in Vim you just have to press 'yy' but there is no copy line command in Emacs out of the box. What you can do is C-k, C-y, i.e cut a line into clipboard and paste it back to have copy line effect.

But trying and learning different tools is obviously useful. Emacs introduced me to ido-mode and org-mode. Now that I know of the possibilities, I can search for and use similar plugins in Vim.

1 comments

"No copy line command in Emacs" Did you try "Alt/Meta-w" ?
You have to select the text first for that to work. The quickest way I can think of is Ctrl+a, Ctrl+k, Ctrl+y.
Or you just roll some elisp to do the job.