News for hackers. Stuff that matters.
Re:Vim 8.0 released by DiabloD3 on Monday September 12, 2016 @10:45AM (#12480077)
Given Vim powers our industry, it'd be neat if pg or any of the other big members of our community donated a non-trivial amount.

There is very few pieces of software I could never imagine replacing in my toolkit. Linux? I use Windows, too. GCC? Clang gets some love sometimes. Languages themselves? I'm fluent in several. Shell? I used Bash for years, now I switched to ZSH, but could go back to Bash if I needed. Tmux? I could also go back to screen if I needed to.

But vim? There's no replacement for vim. vim changes how you think about programming, how you think about software development. It is this frictionless editor (I mean, yes, huge fucking learning curve, but so is programming in general) that, even 20 years later, I will never abandon (unless I'm doing Java, because... fuck Java outside of Eclipse or IntelliJ; and yes, I've tried using that one vim<->eclipse bridge, hell no).

Re:Vim 8.0 released by duck on Monday September 12, 2016 @03:45PM (#12483014)
Just to add to this, a couple years ago I was able to run a campaign to raise $5000 for Vim via Hacker Newsletter (http://hackernewsletter.com) all thanks to 38k great subscribers and sponsors. So while not officially via HN, it was unofficially. :)

We currently hold the top spot, although I would be happy to see someone surpass that: http://www.vim.org/sponsor/hall_of_honour.php

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.).
Re:Vim 8.0 released by omaranto on Monday September 12, 2016 @11:26AM (#12480500)
I found that Emacs + Evil is a pretty good replacement for Vim. Nowadays there is also NeoVim.
Re:Vim 8.0 released by DiabloD3 on Monday September 12, 2016 @12:02PM (#12480827)
I consider NeoVim a Vim, too, thus I don't mention it separately, even though a lot of the internals has been changed around. I wish them a lot of luck.

Evil mode in Emacs seems to be a bit of a crutch. I was actually an emacs user for awhile, and a lot of emacs' power imo comes from using emacs "the right way". I respect emacs and emacs users.

Re:Vim 8.0 released by deepaksurti on Monday September 12, 2016 @01:50PM (#12481934)
There is also Spacemacs, which imho, is much better than Emacs + Evil.
Re:Vim 8.0 released by q3k on Monday September 12, 2016 @02:39PM (#12482437)
Spacemacs is Emacs + Evil...
Re:Vim 8.0 released by elliotec on Monday September 12, 2016 @03:09PM (#12482700)
But with a fantastic boilerplate that requires minimal set up and very easy ways to configure it.
Re:Vim 8.0 released by smnplk on Monday September 12, 2016 @02:59PM (#12482610)
plus that annoying space button
Re:Vim 8.0 released by s_kilk on Monday September 12, 2016 @04:51PM (#12483544)
butwherewouldwebewithoutthespacebutton?
Re:Vim 8.0 released by zipperhead on Monday September 12, 2016 @12:18PM (#12480985)
Re: eclipse. Rather than the bridge you might want to give vrapper (http://vrapper.sourceforge.net/home/) a try. I find it to be quite acceptable - much better than having no vim keybindings. It's very comparable to the jetbrain's vim plugin.
Re:Vim 8.0 released by michaelmrose on Tuesday September 13, 2016 @12:14AM (#12485590)
jetbrains vim plugin doesn't even let you define your own vim like keybindings. It is the worst vim plugin I've seen.
Re:Vim 8.0 released by lenkite on Tuesday September 13, 2016 @10:02AM (#12488280)
Actually, there is some minimal support for map keybindings. See https://github.com/JetBrains/ideavim
Re:Vim 8.0 released by michaelmrose on Wednesday September 14, 2016 @11:25PM (#12503159)
Interesting seems to have improved.
Re:Vim 8.0 released by adelarsq on Monday September 12, 2016 @02:15PM (#12482203)
I use both. Vrapper is the best Vim emulation so far
Re:Vim 8.0 released by mixedCase on Monday September 12, 2016 @12:06PM (#12480871)
JetBrain's Vim plugin is very high quality.
Re:Vim 8.0 released by colordrops on Monday September 12, 2016 @12:51PM (#12481322)
It's the only VIM emulation mode I've used that isn't completely annoying. I'm including spacemacs in that assessment.
Re:Vim 8.0 released by rbonvall on Monday September 12, 2016 @02:18PM (#12482234)
I agree, it's just Good Enough. I mostly miss some add-ons like surround.
Re:Vim 8.0 released by ycitm on Monday September 12, 2016 @04:03PM (#12483169)
Surround support was just added in IdeaVim 0.46. From the release notes:

Support for vim-surround commands ys, cs, ds, S, enable it with set surround in your ~/.ideavimrc

Re:Vim 8.0 released by rbonvall on Monday September 12, 2016 @04:20PM (#12483287)
:-o Thanks!
Re:Vim 8.0 released by Lio on Monday September 12, 2016 @12:30PM (#12481100)
It's OK but I could never get it to do things beyond basic editing like window management right.
Re:Vim 8.0 released by Lxr on Monday September 12, 2016 @02:36PM (#12482411)
It's high quality as they go but not close to being a vim substitute in my experience. There are still tons of little things that don't work as expected.
Re:Vim 8.0 released by zem on Monday September 12, 2016 @03:09PM (#12482698)
so is netbeans's - it's a straight port of the vim source code to java
Re:Vim 8.0 released by busterarm on Monday September 12, 2016 @04:24PM (#12483310)
I came into Vim pretty happy with my other tools (a very-enhanced Sublime Text 3 and JetBrains IDEs)...I wasn't trying to learn Vim, I just had to. Vim is now basically my one tool. That and tmux...and more of the stuff I was using tmux's features for I'm doing in Vim. Both tools are definitely irreplaceable for me at this point, but vim much more than the other.
Re:Vim 8.0 released by lysis on Monday September 12, 2016 @02:35PM (#12482397)
> I will never abandon (unless I'm doing Java, because... fuck Java outside of Eclipse or IntelliJ; and yes, I've tried using that one vim<->eclipse bridge, hell no)

If you're referring to eclim [0] FWIW I've found it to be an adequate way to have a vim centric workflow with a few excursions into eclipse. If you have proficiency with both tools and enjoy having an eclim server running in a eclipse window you'd get have access to the best features of both tools.

[0] http://eclim.org/

Re:Vim 8.0 released by adelarsq on Monday September 12, 2016 @02:13PM (#12482177)
I'm still trying to use vim with java =P Someday I will be happy
Re:Vim 8.0 released by filereaper on Monday September 12, 2016 @06:35PM (#12484236)
Vrapper (http://vrapper.sourceforge.net/home/)

Its a very non-intrusive vim plugin for Eclipse, just does vim emulation and nothing else.

I've found it to be very pleasant to work with.

Re:Vim 8.0 released by adelarsq on Thursday September 15, 2016 @09:12AM (#12505786)
I did use this plugin for a long time. The best plugin so far. I want a plugin like this for Intellij :P
Re:Vim 8.0 released by m0shen on Monday September 12, 2016 @02:37PM (#12482416)
https://plugins.jetbrains.com/plugin/164 (IdeaVIM) is pretty good for intellij based ides.
Re:Vim 8.0 released by adelarsq on Thursday September 15, 2016 @09:10AM (#12505768)
actually I'm using this plugin. Not the better but helps to fell good
Re:Vim 8.0 released by bowmessage on Monday September 12, 2016 @02:29PM (#12482340)
eclim ftw
Re:Vim 8.0 released by adelarsq on Thursday September 15, 2016 @09:09AM (#12505760)
the problem with eclim is that is slow for huge projects. I did use for some time
Re:Vim 8.0 released by copperx on Monday September 12, 2016 @11:39AM (#12480632)
> Given Vim powers our industry

I hope that you're being sarcastic.

Re:Vim 8.0 released by DiabloD3 on Monday September 12, 2016 @11:59AM (#12480799)
Nope. The only other popular editors I've seen people using is either Sublime which, although highly configurable, just ain't no vim; or, all the emacs users, with emacs being the only real competitor to vim. I didn't mean what I said as a slight to emacs users at all, I respect them and their editor, I'm just a huge vim fan.

Also, the same with Java only being used with Java IDEs, C# only being used with Visual Studio is also a notable exception to my "vim all the things" rule.

Re:Vim 8.0 released by vbezhenar on Monday September 12, 2016 @12:05PM (#12480866)
Probably different people have different views on the industry. I never saw anyone (but me) using vim. Programming: Eclipse, Intellij Idea. Administration: notepad, sometimes notepad++. For Linux it's KEdit or GEdit, depending on environment, I saw nano once. vim or Emacs are popular among enthusiasts, but for many professionals who's just makes living on it, those are gimmicks from ancient era.

I spent quite a lot of time mastering vim. It's beautiful editor and I could be incredibly productive with it, but I'm not sure that there are many people who'll do that.

Re:Vim 8.0 released by riboflava on Monday September 12, 2016 @01:46PM (#12481889)
Every so often someone will do a "what editor do you use?" poll here, vim is the top choice. Maybe it's not the most common in the industry, especially if you include the hordes of Java or C# only developers, but at least among HN devs it's the #1 pick.
Re:Vim 8.0 released by flukus on Monday September 12, 2016 @07:46PM (#12484634)
A stack overflow survey (http://stackoverflow.com/research/developer-survey-2016) had plenty of vim users and that includes us c#/java hordes.
Re:Vim 8.0 released by vertex-four on Monday September 12, 2016 @12:45PM (#12481265)
Atom is reasonably popular, and Visual Studio Code is getting there.
Re:Vim 8.0 released by zerr on Monday September 12, 2016 @01:29PM (#12481719)
So you see the comfort of using IDE (eclipse or intellij) with languages such as Java. Do you feel a similar comfort in vim? with which languages?
Re:Vim 8.0 released by riboflava on Monday September 12, 2016 @01:43PM (#12481854)
Not the parent but I have the same reaction, and I wouldn't describe my experience in big IDEs as "comfort", just less pain. I use them with Java only out of necessity, and only on huge projects I didn't have a part in designing up front.

Every other programming language I've used a lot of (spanning from assembly to lisp) I've found it most pleasant to work in vim, even in large projects. I suspect the only other environments I'd want an IDE would be for iOS development and C#.

Re:Vim 8.0 released by adrianratnapala on Monday September 12, 2016 @11:25PM (#12485435)
I found Vi to work perfectly well for C#.

Visual Studio would have been better, if I could have got a decent Windows desktop to span both of my monitors. But since my employer at the time didn't want to get a Windows PC or get a Visual Studio license for this Windows desktop application project, Vim + Samba + SSH were a workable substitute.

Re:Vim 8.0 released by nitrogen on Tuesday September 13, 2016 @02:13AM (#12485959)
I don't know if it's still there, but at one point (some?) MS licenses had an audit clause that would allow the BSA or MS to raid your employer at their expense. That could be one reason for a non-MS shop not to want to get any MS licenses.
Re:Vim 8.0 released by DiabloD3 on Monday September 12, 2016 @05:03PM (#12483664)
Java and C# were both designed to be used in language specific IDEs (C# inheriting that from Java). Using Java outside of a Java IDE is insane.

C, C++, Python, Ruby, JS, Erlang, Perl, etc, just require a relatively sane text editor, no full scale heavy weight IDE features needed. So, yeah, vim does everything I need there.

Re:Vim 8.0 released by zerr on Tuesday September 13, 2016 @08:10AM (#12487382)
"Vanilla" C++ is one thing, but when it comes to using comprehensive frameworks such as Qt or wxWidgets, I guess you have similar reasons (to Java and C# with their "batteries") to use IDE.
Re:Vim 8.0 released by bobajeff on Monday September 12, 2016 @11:17AM (#12480416)
Nano
Re:Vim 8.0 released by bmelton on Monday September 12, 2016 @11:41AM (#12480649)
Are you seriously suggesting that nano is a valid replacement for vim?
Re:Vim 8.0 released by rbonvall on Monday September 12, 2016 @02:20PM (#12482248)
If vim for you is "the thing you edit config files with when sshing to a server," yes, it is. As a full-fledged development environment, it's not.
Re:Vim 8.0 released by mod on Monday September 12, 2016 @02:30PM (#12482345)
In the context of this thread, it is not a valid replacement.
Re:Vim 8.0 released by sixothree on Tuesday September 13, 2016 @12:23AM (#12485621)
I was able to explain to a first time Linux user how to edit a network/interfaces file using nano. I'm not sure I could have done that with vim. That makes a difference in my book.