News for hackers. Stuff that matters.
Re:Vim 8.0 released by bch on Monday September 12, 2016 @01:11PM (#12481535)
> There's no replacement for vim.

I'm used to seeing people say "vim" where "vi" is meant (of which vim is but one (much enhanced) clone), so when you say you could switch out gcc for clang, or bash for zsh, could you not switch out vim for (e.g.) nvi[0]? If not, why not?

[0] https://en.wikipedia.org/wiki/Nvi

Re:Vim 8.0 released by JoshTriplett on Monday September 12, 2016 @01:31PM (#12481736)
nvi provides a minimalist implementation of vi. If you feel comfortable with the vi keybindings in other editors, nvi will likely suffice. However, many vim users expect scriptability, programming language support, and numerous other features.

The analogous comparison would be between bash and posh/dash, or between gcc/clang and the Tiny C Compiler.

Re:Vim 8.0 released by _kst_ on Monday September 12, 2016 @01:49PM (#12481916)
I haven't used nvi in several years (mostly because, unlike nvi, vim has become universally available on the systems I use), but it's not minimalist. nvi has a number of features that the original vi does not. Perl integration and infinite undo are two examples.
Re:Vim 8.0 released by JoshTriplett on Monday September 12, 2016 @02:02PM (#12482065)
nvi definitely provides more features than the original vi, just not nearly as much as vim. And it doesn't have a comparable ecosystem of plugin/package developers around it, either.
Re:Vim 8.0 released by bch on Monday September 12, 2016 @03:00PM (#12482618)
Is there a popularity dashboard of plugins that one could check to see what features vim users are enjoying that I've been living without?
Re:Vim 8.0 released by roryokane on Monday September 12, 2016 @03:11PM (#12482722)
http://vimawesome.com/ has a list of Vim plugins sorted by their popularity, measured by presence in dotfiles repos on GitHub.
Re:Vim 8.0 released by danidiaz on Monday September 12, 2016 @04:27PM (#12483329)
For a conservative list of "essential plugins", see https://www.vi-improved.org/plugins/

"surround" and "targets" are indispensable for me.

Re:Vim 8.0 released by pekk on Tuesday September 13, 2016 @12:07AM (#12485567)
Almost nobody is using Bill Joy's vi and most systems don't have it. They might have a symlink to vim named 'vi'.
Re:Vim 8.0 released by inDigiNeous on Monday September 12, 2016 @04:10PM (#12483227)
Why would you want to switch out of vim ? It runs everywhere. nvi is completely different, all the configurations and so on. Syntax files, plugins, you can't just move those over.
Re:Vim 8.0 released by bch on Monday September 12, 2016 @07:21PM (#12484455)
You're assuming a vim-centric point-of-view. Believe it or not, I don't use vim that much, and so I have no vim configuration/plugins to worry about. nvi happens to be where I spend the bulk of my time since I've cared what flavour of vi I'm using. So, I haven't "switched out of vim". I am genuinely interested in "what I'm missing" though. I occasionally trawl though youtube to look for videos, but I mostly haven't had my mind blown. I think I -would- like horizontal (or would you call it vertical?) screen splits where I have a left screen and a right screen (nvi provides splitting arranged above/below ea. other), and to fold sections of my work too, so I could (using my imagination here): ma (mark 'a), go to some other spot in the doc and: \(backslash)'a (fold the text from "here" to the 'a mark). That'd be immediately satisfying. Otherwise, I think nvi holds up really well for me.
Re:Vim 8.0 released by michaelmrose on Tuesday September 13, 2016 @12:11AM (#12485578)
Re:Vim 8.0 released by pekk on Tuesday September 13, 2016 @12:11AM (#12485579)
Someone somewhere uses elvis, but it doesn't make any sense to assume an elvis-centric point of view.
Re:Vim 8.0 released by alarge on Monday September 12, 2016 @01:34PM (#12481772)
I haven't used nvi in many years, but for me, vim is much more than just the vi key bindings. Absolutely core features for me include folding and the various syntax-related features (filetype identification, syntax highlighting, filetype-specific logic, etc.).