News for hackers. Stuff that matters.
Re:Vim Creep (2011) by Privacy846 on Saturday December 12, 2020 @01:28PM (#25400320)
Unix isn’t integrated enough. You can’t go very far with just throwing strings around (or bytes). You can’t safely refactor, say, Java code like you can do in Intellij.

Maybe you can piece something together manually that does the same thing, eventually. But if you have to do all of that work yourself then I wouldn’t call it integrated.

Re:Vim Creep (2011) by jackyinger on Saturday December 12, 2020 @01:39PM (#25400393)
I think the point is that with *nix you aren’t just stuck with what some product manager at JetBrains thought was a cool feature.

And when you want to brew something up from scratch, or do the same task for the nth time, you don’t have learn how on earth this IDE implemented it, or learn a whole new API.

Take for instance an IDE’s find usages function, often a simple grey -r from a judiciously chosen directory gets you the same thing, but faster and more flexible (if your mind is wired that way, I suppose).

Edited to complete fragment...

Re:Vim Creep (2011) by throwaway744678 on Saturday December 12, 2020 @02:18PM (#25400698)
Any sane IDE 'find usage' is miles above your simple grep: just try that on any sypbol with a name common enough, and compare the results...
Re:Vim Creep (2011) by hansvm on Saturday December 12, 2020 @02:44PM (#25400953)
This winds up not being a big deal if you use grep a lot because you'll tend toward greppable names.

More importantly though, in a codebase big/complicated enough to need "find references" functionality beyond what you get from grep, do you not also have comments, reflection, and all manner of other garbage that you need to search for via some mechanism anyway?

For a few languages (more on the way) you also have semgrep as a way to add something a bit more powerful than "find references" into a normal shell workflow.

Re:Vim Creep (2011) by Privacy846 on Saturday December 12, 2020 @03:05PM (#25401160)
I have used `grep -r` a ton on our codebase and purpose-specific tools like “find usages” are always more to the point while `grep -r` can easily be misleading.

Also you can’t just tend toward greppable names (whatever that means) if you share a codebase with developers who are on Windows and wouldn’t be able to tell grep from sudo.

Re:Vim Creep (2011) by Privacy846 on Saturday December 12, 2020 @03:01PM (#25401129)
> I think the point is that with [Unix] you aren’t just stuck with what some product manager at JetBrains thought was a cool feature.

But you see that’s exactly what you are, because you can’t refactor Java code with what you call “Unix tools”. So your only option is to install actual IDEs on Unix.

And “find usages” finds... actual usages (e.g. method calls), not simple text matches which can end up being 80% noise. For `grep -r` you might try `Ctrl+Shift+f` instead.

Re:Vim Creep (2011) by cracksmoka420 on Saturday December 12, 2020 @04:40PM (#25401981)
> But you see that’s exactly what you are, because you can’t refactor Java code with what you call “Unix tools”.

"refactoring java code" is really not an exceptional task that vim (or emacs) cannot handle.

In situations where grep -r is too stupid, ctags exists.

Re:Vim Creep (2011) by cyberdelica on Saturday December 12, 2020 @05:22PM (#25402331)
As well as ctags, one can also use the GNU "idutils" suite of programs.
Re:Vim Creep (2011) by DangitBobby on Saturday December 12, 2020 @05:03PM (#25402176)
Fortunately there's a terminal window baked right in there if you find yourself needing other tools.