News for hackers. Stuff that matters.
Re:Vim 8.0 released by znpy on Monday September 12, 2016 @09:11AM (#12479332)
Given the occasion, and given that vim is charity-ware software (http://charityware.info/), it would be cool to have some sort of HN-wide donation to ICCF (http://iccf-holland.org/).

Donation page: http://iccf-holland.org/donate.html

It seems that you can send bitcoins too: http://iccf-holland.org/bitcoin.html

Imho just mentioning HN in the payment description would be okay :)

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.
Re:Vim 8.0 released by shazow on Monday September 12, 2016 @12:48PM (#12481293)
Neovim was largely responsible for pushing vim to add many of these features like async[0]. If anyone wants to donate towards this kind of pressure, there are links here: https://neovim.io/ [Edit/disclaimer: I have donated in the past.]

Neovim is like the Chrome of the web. A great editor, but also a great forcing function for the ecosystem.

[0] https://news.ycombinator.com/item?id=12481084

Re:Vim 8.0 released by hackuser on Monday September 12, 2016 @12:51PM (#12481324)
> Neovim was largely responsible for pushing vim

Did Bram Moolenaar tell you that? Otherwise, none of us know what motivated him.

Neovim fans seem to hijack Vim discussions frequently. Sometimes people want to talk about Vim.

Re:Vim 8.0 released by shazow on Monday September 12, 2016 @12:56PM (#12481378)
> Did Bram Moolenaar tell you that? Otherwise, none of us know what motivated him.

I don't think this is a subjective matter? The sequence of events was:

1. async feature was proposed in 2014 and earlier, Bram was opposed to the idea in general

2. neovim was created to integrate async and other improvements

3. lots of plugins started supporting neovim's async

4. vim comes out with its own async feature

You're welcome to ask Bram what motivates him personally, but I'm comfortable with my judgement of causality to the ecosystem as a whole.

> Neovim fans seem to hijack Vim discussions frequently. Sometimes people want to talk about Vim.

You may talk about vim, that's fine. Do you feel neovim is off-topic for vim discussions? It seems fairly related to me.

Re:Vim 8.0 released by flukus on Monday September 12, 2016 @07:47PM (#12484644)
> 1. async feature was proposed in 2014 and earlier, Bram was opposed to the idea in general

Not accepting a patch without question doesn't mean he was opposed to the idea.

Re:Vim 8.0 released by executesorder66 on Monday September 12, 2016 @10:58PM (#12485351)
I'm linking this[0] post, not to talk about why/if neovim is better than vim, but rather because it gives a nice overview of why that patch was rejected, and why neovim was started.

[0]http://geoff.greer.fm/2015/01/15/why-neovim-is-better-than-v...

Re:Vim 8.0 released by flukus on Tuesday September 13, 2016 @12:18AM (#12485603)
Look at the linked mailing list thread. It wasn't rejected, there were several adjustments for coding conventions, naming, etc and the last thing Bram mentioned was basically "we'll consider it".

Then the developer threw a hissy fit a few days later and created a fork because his patch wasn't accepted right away.

Re:Vim 8.0 released by VarFarYonder on Tuesday September 13, 2016 @08:09AM (#12487368)
> Then the developer threw a hissy fit a few days later and created a fork because his patch wasn't accepted right away.

According to the Geoff Greer, they didn't fork Vim. The fork happened a couple of months after their patch wasn't accepted, and they joined: "A couple of months after my disillusionment with Vim, Thiago de Arruda submitted a similar patch. It was likewise rejected. But unlike me, Thiago didn’t give up. He started NeoVim and created a Bountysource for it." http://geoff.greer.fm/2015/01/15/why-neovim-is-better-than-v...

Re:Vim 8.0 released by brazzledazzle on Tuesday September 13, 2016 @01:06AM (#12485753)
I remember when that went down and I was sympathetic. It was a shit show and a total waste of their time. I would have been angry enough to start a competing project too.
Re:Vim 8.0 released by cobby on Monday September 12, 2016 @11:00PM (#12485363)
He didn't accept several patches, did he?
Re:Vim 8.0 released by leshow on Monday September 12, 2016 @01:10PM (#12481524)
post hoc, ergo propter hoc -- this is a logical fallacy
Re:Vim 8.0 released by tanderson92 on Monday September 12, 2016 @01:20PM (#12481617)
This would be a post hoc, ergo propter hoc fallacy:

1. async feature proposed and implemented in neovim

2. vim comes out with its own async feature.

shazow's post has significantly more evidence of neovim's responsibility, enough that it isn't a fallacious argument. It isn't definitive proof, either.

Re:Vim 8.0 released by reflexive on Monday September 12, 2016 @01:49PM (#12481922)
I understand that assisting AIDS sufferers in Uganda is a favorite cause of Bram Moolenaar. However in the absence of an overall plan to help the country develop, such short-term interventions may be a net harm to the very populations they're intended to help.

http://www.economist.com/news/middle-east-and-africa/2161334...

I would encourage folks to read up on factors surrounding the causes they support. Perhaps organizations like the Free Software Conservancy could use your donation to benefit humanity far more profoundly, even if they can't compete on emotional appeal.

https://sfconservancy.org/supporter/

Re:Vim 8.0 released by hackuser on Monday September 12, 2016 @04:59PM (#12483634)
I agree with the general point, and I believe it's well-established, that aid can have second-order and higher order effects that are counter-productive. On the other hand, in this case it's merely FUD and an argument for inaction; we would need specific information about Moolenaar's charity. I'm not going to stand still and do nothing just in case.

Second-order effects also can make donations to the Free Software Conservancy counter-productive.

As an aside, I wonder if the Free Software Conservancy would want to be seen telling people not to donate to Ugandan AIDS victims and to redirect the money to themselves. My guess is they would not like to see their name here.

> emotional appeal

Life and death has appeal beyond 'mere' emotion. It's more important than free software, and I say that as an avid fan of, and occasional donor and contributor to FOSS projects.

EDIT: A rewording or two

Re:Vim 8.0 released by reflexive on Monday September 12, 2016 @07:14PM (#12484422)
> I'm not going to stand still and do nothing

The advice "Don't just do something, stand there!" comes to mind.

Bram has been going to Kibaale since 1994, and he's now presumably busy feeding and clothing a new generation of orphaned children, orphaned by the original orphans. Isn't this precisely the creation of a trans-generational cycle of dependency by Western patrons?

Wouldn't those people rather be in a position to feed and clothe their own population? Perhaps even be the ones sending charitable aid workers to the Netherlands.

What is happening is evidently not a path to freedom and independence. The correct action can be found in inaction.

> Life and death has appeal beyond 'mere' emotion.

Remember it's true: lives are valuable, but our dignity is valuable too.

Re:Vim 8.0 released by __s on Monday September 12, 2016 @08:30PM (#12484859)
How do you know they're the children of children he's helped? Latest news posting underlines emphasis on education & getting people employed

http://iccf-holland.org/news.html

Re:Vim 8.0 released by reflexive on Tuesday September 13, 2016 @02:56AM (#12486101)
I'm all for individual achievements, but I wouldn't call turning people into lawyers and Arsenal supporters an unequivocally positive outcome.

Should you feel moved to give to Bram's organization, at least consider an offsetting donation to help address the eradication of pristine savannah, extinctions from over-hunting, elimination of biodiversity, and other imbalances which will naturally occur when a human population is suddenly freed from all checks on growth.

https://en.wikipedia.org/wiki/Kibaale_District#Population

Or one might consider just making the world a better place by doing something we actually understand - like, writing software and doing our jobs, instead of staying up late $#!+posting ;-)

Re:Vim 8.0 released by hackuser on Tuesday September 13, 2016 @04:48PM (#12492094)
> he's now presumably busy feeding and clothing a new generation of orphaned children, orphaned by the original orphans

That comment makes up a fact and then criticizes it.

I have no idea what the outcomes are for the people Bram helped and I doubt you do, though I'm confident they have a little more food and whatever else he provides. There are still problems in Uganda and there are still problems everywhere in the world, including in rich nations, in your family and mine, in your life and mine; there are bugs in Linux' code. The fact that problems remain doesn't in any way imply that the efforts to improve are counter-productive. That doesn't make sense.

Re:Vim 8.0 released by data_hope on Monday September 12, 2016 @03:13PM (#12482741)
I don't even...
Re:Vim 8.0 released by ethagnawl on Monday September 12, 2016 @12:32PM (#12481116)
I just made a donation. Thanks for the nudge. :]
Re:Vim 8.0 released by znpy on Monday September 12, 2016 @06:45PM (#12484288)
I am happy that at least one person got what I was meaning :)