Live data from Hacker News

From Vim to Emacs

juanjoalvarez.net

121–123 of 123 posts

Re: From Vim to Emacs

#121
post #87
post #84

Earlier quoted context omitted.

Huh? vi does not have any plugins; only vim. vi is even more bare-bones than vim, lacking a lot of features (macro recording and text objects being the ones I miss). It is extremely common to find vi pre-installed on countless servers, however, making it extremely convenient if you're an expert with it. What's amusing to me is how many people don't know vi very well and use plugins in vim that vi can handle as well o…

This bothers me. People should just call it vim when they mean vim. I suspect most people here haven't actually touched Joy's vi or its closest derivative, nvi. I don't know where this practice comes from but it feels exactly the same as when people say Unix when they are very obviously talking about GNU/Linux.

[deleted]

Re: From Vim to Emacs

#122
post #86

Earlier quoted context omitted.

Nice, I looooove old school vi. O'Reilly's book on vi: Mastering the vi editor: 6th edition is my bible. I wish there were other sources of information and tips for vi. I really want to know what sort of workflows other people have.

I haven't read it myself, but Practical Vim is quite highly regarded: http://www.amazon.com/Practical-Vim-Thought-Pragmatic-Progra... A whole book of tips

That sounds like a good book for a vim user. I wonder how much of it would apply to vi, however.

Re: From Vim to Emacs

#123

"With Vim I had defined a keybinding that selected the last pasted text. It was useful when you wanted to reformat or indent text that you've pasted from somewhere. At the moment I've been unable to reproduce this in Emacs." - in non-evil-mode at least, C-x C-x will reselect what you last pasted if you haven't moved. What really happens is that when you paste, the "mark" is set there (equivalent to doing C-SPC), and…

No need for text properties, just make "yank-last-start" and "yank-last-end" markers instead of simple ints ( https://www.gnu.org/software/emacs/manual/html_node/elisp/Ma... ) - they will be moved automatically with every edit.

Oh, nice, I suspected there was a better way :-)
Post reply on HN