Live data from Hacker News

Switching from Vim to Intellij

browntreelabs.com

211–220 of 263 posts

Re: Switching from Vim to Intellij

#211
post #204

I knew it was another stack that made the switch. I use emacs for Clojure and I've been using VSCode for Typescript projects. Both had the largest communites of relevant developers making the best tools. And VSCode has the best TS plugins and the latest cool stuff. Plus with VSCode I can use VIM mode, which does enough of the job (you know than 90%, minus the 10% which will never be the same). But I still use Vim for…

> And VSCode has the best TS plugins and the latest cool stuff.

I don't know why or how, but JetBrains IDEs (WebStorm, IntelliJ, etc.) have much better TypeScript support than VS Code. I've used them both on the same project, and it's painful to use VS Code.

The main advantage of the JetBrains IDEs is that their built-in hinting/linting and code sense are much better. VS Code will fail to warn me about things that JetBrains does by default.

(I say this as someone heavily using eslint, by the way.)

Re: Switching from Vim to Intellij

#212

Earlier quoted context omitted.

I started using Vim in mid/late 2000s, and successfully switched to Emacs. Without knowing your specific gripes, it's hard no know what'll end up helping you, but here are my two cents: - use emacsclient and have aliases for emacsclient -c and and emacsclient -n for popping up a new frame or using the console, respectively. I even have a window manager binding to open a new Emacs client window - Rainer König is the b…

Thank you for this list, I appreciate the effort. I've got some time off of work next week and the kids won't be home, so I'll spend the day digging into this.

I'd like to add: org-mode is overwhelming, so just take it easy. Set up a notes folder, sync it to the web, and just use org as a plain markdown/todo list editor for a while. Perhaps add org-roam (like vimwiki with backlinks). Then, only if you feel the need to, give org-capture and/or the calendar/agenda features a try. Don't force yourself to use some obscure feature just because it's there in the manual on page 587, or because you saw someone on Youtube rave about it.

I switched to Doom Emacs about two years ago and while I miss the insane performance and simplicity of vim sometimes, the positives overall outweigh the negatives once you get over the initial differences (workspaces, command names, etc.).

Re: Switching from Vim to Intellij

#213
post #30
post #10

What does the author mean by "setting up copy/paste? I've been using vim for about 20 years and just do "+y and "+p

I've found it to be a colossal pain in the ass in WSL, since the emulated linux clipboard isn't synced with the windows clipboard. I have to :wq, cat the file, and ctrl-ins to copy.

I used this(https://www.github.com/maple3142/dotfiles/tree/master/.vimrc) to let you yank directly into Windows's clipboard. It was copied from a stackoverflow answer, but I don't remember where is it.

Re: Switching from Vim to Intellij

#214
post #173

>Everything is pre-configured: You don’t have to worry about setting up tags, or YouCompleteMe, or NERDTree. I can’t tell you how many times I open a new project, perhaps in a different language, and everything works great out of the box. It’s a total sigh of relief. I agree 100% here, if you value these types of IDE tools I don't recommend going to Vim. It frankly sucks at this stuff, it wasn't meant for it and it's…

How do you hook vim up to email and HN comments?

Re: Switching from Vim to Intellij

#215
post #173

>Everything is pre-configured: You don’t have to worry about setting up tags, or YouCompleteMe, or NERDTree. I can’t tell you how many times I open a new project, perhaps in a different language, and everything works great out of the box. It’s a total sigh of relief. I agree 100% here, if you value these types of IDE tools I don't recommend going to Vim. It frankly sucks at this stuff, it wasn't meant for it and it's…

I know vim isn't for people who want everything set up out of the box.

But I think installation of the extensions for LSP / completion / navigation etc.. features could've been easier. In my limited experience, it's a hassle getting these tools to work.

Re: Switching from Vim to Intellij

#216

I wrote a similar comparison here: https://henrikwarne.com/2012/06/17/programmer-productivity-e... I've got to say that I am still solidly in the IntelliJ IDEA camp.

I've been using JetBrains tools since 2004/2005, and I've become so attached at the hip to IDEA, CLion, etc. that it has become hard for me to work in anything else. And it's really bitten me recently because the codebase I work in (C++, Chromium based) just won't index in CLion, it's so massive that CLion just pukes. That and with my remote work situation I'm really down to mostly using CLI tools, so it's back to Em…

Ironically though many think CLion as a better IDE than Eclipse CDT, Eclipse CDT actually works smoothly for large projects like Chromium (https://chromium.googlesource.com/chromium/src/+/master/docs...), Firefox (https://developer.mozilla.org/en-US/docs/Mozilla/Developer_g...) or the Linux Kernel. I've successful used it with Chromium when doing some WebRTC development.

Last time when I praised CDT for embedded Linux developing, I was downvoted by these vim/clion lovers...

Re: Switching from Vim to Intellij

#217
post #29

I'm still holding out for proper IDEs with embedded neovim at the core. Vim has a few killer apps I can't live without - custom text objects, vim-surround, and vim-sneak.

It might be worth taking a look at Onivim2 ( https://onivim.io )

Yeah, I've been following that one for a while, I pre-ordered it. I was a little disappointed they switched from neovim back to vim. I'm sure the engineering reasons were sound, although I didn't understand them and it made me a little less excited about the project.

Not sure how to feel about the goal of vscode plugin compatibility. I'd hope for a vim based ide to kind of "be its own thing".

Re: Switching from Vim to Intellij

#218
post #98
post #30

Earlier quoted context omitted.

I've found it to be a colossal pain in the ass in WSL, since the emulated linux clipboard isn't synced with the windows clipboard. I have to :wq, cat the file, and ctrl-ins to copy.

That's not vim specific though, right? If you ran e.g. vscode inside WSL you would have the exact same problem?

I'm not sure about the specific instance of vscode. Since it's a gui app, I don't think you can run it inside of wsl. You can use a plugin to connect to wsl, but I don't think that's quite the same thing, and I wouldn't expect it would allow clipboard sharing.

The general point is right though. This is an issue with any terminal program that either doesn't allow selection of text, or has a system for selection of text that's separate to that of the terminal emulator.

Re: Switching from Vim to Intellij

#219

Earlier quoted context omitted.

Emacs Evil mode is the exception here. It’s possibly better than Vim itself.

I've recently been picking up Emacs for org-mode. Evil does not support settings such as `:set nu` or a thousand other settings that I use once in a blue moon but expect to just work. Even `:wq` attempts to close all buffers, `:e` doesn't open files as expected, I could go on. IdeaVIM get 90% of VIM right, and some things wrong (such as `u` for undo also undoing movements). Evil gets 95% of VIM right. But I have high…

Can you expand on that?

For me, :wq closes the current buffer. For me, :e works as expected.

There might be a built in alternative to :set nu. How do you expect that to work?

Re: Switching from Vim to Intellij

#220

Once coding no longer was on the critical path of my employment (as a middle manager in a large tech company) I went back to vim from IntelliJ with nothing more than syntax highlight and autoindent. The reason? I wanted to know my programming languages better. Instead of auto-imports and auto-complete I was forced to have java/scala docs open for whatever library I was using. Beyond giving me better muscle memory for…

Totally agree with this. I much prefer being really slow and actually learning a language and writing code I understand vs banging out a thing for work with stackoverflow and an IDE.
Post reply on HN