News for hackers. Stuff that matters.
Re:Show HN: Svelte NodeGUI, a lightweight Electron alternati... by zant on Friday March 05, 2021 @08:40PM (#26364443)
I tried to move from VS Code to NeoVim with NerdTree and some other plugins to make it more IDE-like.

But eventually wasn't able to get the same code completion, and searching was also a bit more painful.

How do you go about that? Would you mind sharing your setup? :)

Re:Show HN: Svelte NodeGUI, a lightweight Electron alternati... by davidkunz on Saturday March 06, 2021 @03:58PM (#26370469)
Hi, I use Neovim with basically the same features as VSCode. I made a video series on how to configure it: https://youtu.be/CcgO_CV3iDo?list=PLu-ydI-PCl0OEG0ZEqLRRuCrM...
Re:Show HN: Svelte NodeGUI, a lightweight Electron alternati... by sgoody on Friday March 12, 2021 @07:15AM (#26434936)
Hey, thanks for this. I'm a long-time Vim user, but I've never gotten around to adding in some slick IDE-like featuers (I've made half an attempt to get code completions working, but often lose interest if it doesn't work first time).

The intro looks great I will definitely check this out.

Re:Show HN: Svelte NodeGUI, a lightweight Electron alternati... by zant on Saturday March 06, 2021 @05:22PM (#26371063)
Wow looks super promising. Definitely worths a try.

Thanks for sharing!

Re:Show HN: Svelte NodeGUI, a lightweight Electron alternati... by smichel17 on Friday March 05, 2021 @10:30PM (#26364935)
Write code in vim with no/few plugins. Don't worry about getting the variable names right. Then move to your IDE to get it to compile.

It's conceptually similar to sketching out the design of your code with a pen and paper or whiteboard. First write it quickly, then make it correct.

Re:Show HN: Svelte NodeGUI, a lightweight Electron alternati... by jrochkind1 on Saturday March 06, 2021 @11:01AM (#26368262)
That's what you do? Why?
Re:Show HN: Svelte NodeGUI, a lightweight Electron alternati... by bobmaxup on Saturday March 06, 2021 @03:39AM (#26366060)
How is writing something in vim faster? You can have the same bindings in many IDEs.
Re:Show HN: Svelte NodeGUI, a lightweight Electron alternati... by smichel17 on Saturday March 06, 2021 @07:02AM (#26366854)
This thread has been specifically about responsiveness. Latency, not throughput. Also, the bit about no plugins was a little white lie. I really meant "no plugins for IDE-like functionality (language server, etc)". While many IDEs offer basic vim keybindings, I don't know any that would let me import my .vimrc wholesale and work exactly the same. I'd love an IDE that embeds neovim as the text editor.

Anyway, if you don't care about all that, you can get a similar effect by turning off intellisense (or equivalent) in your IDE while you write, then turn it back on at the end to get what you just wrote to compile. I do this sometimes in Android Studio.

Re:Show HN: Svelte NodeGUI, a lightweight Electron alternati... by IggleSniggle on Saturday March 06, 2021 @08:13AM (#26367115)
There is an IDE that embeds neovim as a text editor, kind of.

The VSCode Neovim extension makes neovim run as its backend, while giving you all the IntelliSense etc of VSCode. I can’t tell exactly you how it affects responsiveness as I only toy around with it, but it does feel noticeably better in some aspects...yet maybe occasionally glitchy?

Anyway it’s pretty interesting, especially if you’re already using neovim anyway.

Re:Show HN: Svelte NodeGUI, a lightweight Electron alternati... by linknoid on Saturday March 06, 2021 @08:49AM (#26367309)
The VsVim plugin for Visual Studio makes an attempt at supporting everything in the .vimrc (or _vimrc) file. Compatibility is not 100%, so certain things just fail, but it's a lot more than just basic key bindings.
Re:Show HN: Svelte NodeGUI, a lightweight Electron alternati... by eska on Saturday March 06, 2021 @06:41AM (#26366770)
Stop trying to use vim like your IDE. Vim doesn't have shortcuts, it has a whole language of commands that can freely be combined.
Re:Show HN: Svelte NodeGUI, a lightweight Electron alternati... by agrippanux on Saturday March 06, 2021 @01:16AM (#26365597)
The vim plugin CoC uses the same engine for code completion as Code. It’s pretty trivial to set up.

For searching, use SilverSearcher / fzf