News for hackers. Stuff that matters.
Re:Editor Overload by donatj on Friday August 28, 2020 @05:01AM (#24302829)
When I try to discus editors with friends and coworkers, I often get pushback about not wanting to “switch”. Have I got news for you, computers multitask these days!

I personally often have a JetBrains IDE open alongside VSCode, Sublime and vim because there are things each of them do better, or at the very least things I better know how to do in each. You don’t need to replace a program you like, you can just add to your menagerie.

Final unrelated note, all editor nerds should give Acme a spin. It’s a literal trip. I never got comfortable enough with it to be productive, but I could see it being amazing if you get your head around it.

Re:Editor Overload by dividedbyzero on Friday August 28, 2020 @07:30AM (#24303635)
Definitely. I use SublimeText for general editing tasks and OpenSCAD, VSCode for Python, Terraform/Kubernetes, Ruby, bash/fish ... and IntelliJ for Scala, because it's just the best at that by a long shot. I also use SublimeText for random notes and as a clipboard buffer, since it keeps unsaved tabs alive really well, even across restarts and crashes – I think one of my unsaved tabs must be close three years old. Terriffic piece of software.

I never got into emacs/vi/vim. I suspect they aren't actually rubbish, but my exposure to both so far has been limited to lots of very aggressive sales pitches like "anything less than my particular way of using emacs doesn't even qualify as text editing" and "using arrow keys is sin, filthy unbeliever", both in person and online (HN has its fair share of this), and that's just such a huge turn-off, massively takes the fun out of it.

Re:Editor Overload by lyjackal on Friday August 28, 2020 @08:23AM (#24303999)
Hah, that's my exact same workflow. Sublime for random notes, clipboard buffer. Vscode for JavaScrcheck on package uspsipt/typescript. Intellij for Scala. I also have a dated log loh of todos that I edit in vim with some helper scripts that keep add a datestamp for each new day that I open it.

I've lightly forayed into vim and emacs before, but can't live without the built in language support

Re:Editor Overload by Cthulhu_ on Friday August 28, 2020 @05:40AM (#24303050)
Same; I use IntelliJ for the brunt of my work (no editor is faster than automated refactorings & auto fixes), VS Code for random code, documents, and scratch pads (usually using it for auto formatting as well), and vim for git commit messages / interactive rebases, but mainly because git opening up an external editor breaks my git flow.

Me and Vim never clicked. Mind you that may also be because I've not found a good tutorial / practice thing yet, nothing that stuck or that pushed me to get the various commands into my muscle memory.

Re:Editor Overload by rusk on Friday August 28, 2020 @08:44AM (#24304173)
I use IntelliJ for Java. There's nothing to touch it. What bugs me is that every year or so they change things around and you have to figure out how everything works again, or they discontinued support for a plugin for a particular version of a VCS you were using ... (no I'm not bitter ;)

But I use Emacs for everything else. Emacs never changes how things are done. It can't do Java the way I'm used to doing it though. It took me a whole heap of work to get competency to a level I was actually productive with though, so I can appreciate why it's a tough sell. Worth it though IMO. Though I pity the person who has to pair program with me!

Re:Editor Overload by JackMorgan on Friday August 28, 2020 @08:07AM (#24303882)
If you're interested in learning Vim, I wrote up a bunch of practice exercises for every command to build muscle memory. They are intended to only take about 10 minutes a day for a couple weeks to help learn specific commands. Here's a few free sample chapters: https://github.com/steveshogren/10-minute-vim-exercises/blob...
Re:Editor Overload by square_usual on Friday August 28, 2020 @06:04AM (#24303187)
I have the same setup with Sublime instead of VS Code. Sublime starts faster and takes up less memory, and I don't need the things vsc is better at for my scratchpad needs. For when I don't want to use a JetBrains IDE I just use code full stop.
Re:Editor Overload by closeparen on Friday August 28, 2020 @01:11PM (#24307351)
I’m hoping beyond hope that Jetbrains one day implements a client-server architecture. The codebase at work is getting too big for our MacBooks to reasonably “git pull,” build, and index. The solution on offer is very powerful cloud instances. The only GUI editor option there is VSCode. It’s okay, but nowhere near Jetbrains level.
Re:Editor Overload by loxs on Friday August 28, 2020 @05:30AM (#24302996)
Exactly. Especially once you learn Vim you don't need to "switch" at all. You can have the vim plugin in every editor and use the best tool for every job.
Re:Editor Overload by kabdib on Friday August 28, 2020 @05:40AM (#24303052)
I don't know vi/vim at all (okay, only enough to exit an accidental session), so I can't judge the quality of these emulator plugins.

But I am curious:

On the Emacs side of things, none of the dozens of editors I've used that claim to emulate Emacs have done a good enough job to let me actually work. Right off the bat, most of them do not get C-U correct, and that's something any serious Emacs user will hit within a few seconds.

Do the 'vi' plugins generally do a good job, or are they just the same hollow key remappings that most editors consider "an Emacs mode"?

Re:Editor Overload by vladvasiliu on Friday August 28, 2020 @06:33AM (#24303324)
I would say it depends. Mostly they enable the modal editing thing and most commands are available. However, what usually happens is that this integration is only skin-deep and there may be conflicts with the IDE's shortcuts.

In intellij, shortcuts (commands using a modifier) can either be handled by the Vim plugin or by the IDE. You can't choose depending on the mode of vim. I mainly use Vim for the movements, so I don't feel very limited by the lack of "advanced features". However, what irks me is the way words are handled. For exemple, the IDE will be able to handle camelCase and go from one "word" to the next with ^->. Vim doesn't know that.

Another limiting factor is that many people use a bunch of vim plugins. As the vim-mode in IDEs isn't actually vim, those plugins can't be used.

I've never tried, but what looks interesting on paper is the neovim integration of VSCode. From what I understand it actually uses nvim, so that should be able to provide the full vim experience, including plugins.

Re:Editor Overload by urxvtcd on Friday August 28, 2020 @06:59AM (#24303457)
It's been a while since I last tried Vim emulation, so I don't remember the details, but I remember feeling impaired. :g and :v commands were missing, which is a big deal for serious vim users, I think?

Though comments under yesterday's post about scrollbars made me realize I might live in a :g/:v bubble :)

Re:Editor Overload by loxs on Friday August 28, 2020 @08:09AM (#24303899)
I am not sure. I probably don't know "vim proper" - only "portable vim" which is the same in all editors.

For the basic editing (probably not that basic, as I use quite advanced editing techniques like macros) I use vim shortcuts and for things like manipulation of windows/buffers/tabs I use editor specific shortcuts. Also for some unique features, like code refactoring in IntelliJ IDEs I use their shortcuts.

But "basic vim" functionality is still enough "to be dangerous" very fast after I start using an editor and I gradually learn the specifics. I never think twice whether I want to try some new editor. I just do it.

Indeed, I don't use vim proper (can't remember if I ever used it), but I heavily use all of the following (for different purposes) at the moment:

1. WebStorm for web stuff 2. CLion for Rust (it's different from WebStorm and has different shortcuts for various things) 3. Spacemacs for OCaml 4. VSCode for various things, mostly for beancount accounting 5. vim on remote machines - but there I don't use buffers and other more advanced things

Re:Editor Overload by ofrzeta on Saturday August 29, 2020 @02:04AM (#24313996)
Assuming you talk about Acme from Plan9 you could try Wily which is similar (don't know about the actual differences) but more accessible because it can be compiled on Unix/X11.

http://www.cs.yorku.ca/~oz/wily/

Re:Editor Overload by donatj on Saturday August 29, 2020 @04:18AM (#24314576)
Honestly installing Acme on macOS with Homebrew was zero fuss.

https://blog.mattrbianchi.com/post/get-started-with-acme/

Re:Editor Overload by slifin on Friday August 28, 2020 @05:59AM (#24303160)
Same I use Intellij and Sublime, for me the best debuggers are in Intellij, and the fastest editing experience is in Sublime