Live data from Hacker News

VSCode-Neovim: Use embedded Neovim in VSCode without emulation

github.com

101–110 of 112 posts

Re: VSCode-Neovim: Use embedded Neovim in VSCode without emulation

#101
post #63

I have used VSCode-Neovim on OSX since roughly NVIM v0.5. It is quite simply the best vim environment I've ever used and I've used quite a few. I date myself back to vim, back to vi and even to TECO. I pair this setup with the clangd LSP extension which makes it even more awesome. This is editor heaven. However it isn't perfect, yet. Command mode is still a work in progress and I use command mode a lot. Navigation wi…

IdeaVim from Jetbrains is far superior to any VS Code Vim plugin.

This isn't true and misleading.

Re: VSCode-Neovim: Use embedded Neovim in VSCode without emulation

#102
post #88
post #52

Earlier quoted context omitted.

I do now have memorized some mix of vim and vscode keybindings, but to me it's worth it. I'm not at 100% keyboard navigation because in some cases I've burned 5-10 minutes looking up a shortcut, repeatedly 1/mo for 3 months. After so many (overly) spaced repetitions, I recognize the shortcut isn't worth memorizing. > Installing plugins is one good example of this, where even if you use a Vim plugin (or this, it seems…

cmd-p is an absolute must if you use this plugin. Thanks for sharing!

I’ll add onto this, cmd-shift-p is the reason to use VS Code over neovim/vim.

For every plug-in I’ve installed in vim, I used about 5% of their behavior. I’ve spent time looking through plug-in utilities and thought “oh that’s useful” and then forgotten about them by the next day. I’m aware that in vim, I can type :substring and get a list of commands. As far as I recall, I only get name matches. VSCode’s action search massively improves the user experience of this, allowing me to scan descriptions of plug-in commands.

Re: VSCode-Neovim: Use embedded Neovim in VSCode without emulation

#103
post #92

Could be Baader–Meinhof phenomenon but I feel like Vim is having a resurgence due to lots of streamers and youtubers using it. I personally started using Vim bindings in VSCode recently due to wrist pain issues and have been geeking about it a bit. Though there is still a fair bit of cognitive overhead for basic editing operations that were second nature previously.

I think so. Also "in real life", in 20 years around coders, I only met 1 Vim user and 0 Emacs users. Everyone else has always been running the IDE for that language, or something like Notepad++...

Re: VSCode-Neovim: Use embedded Neovim in VSCode without emulation

#104
post #72

Earlier quoted context omitted.

Thank you for posting these!

My pleasure! This plugin is hands down my favorite VSCode plugin. I worked mostly in vim before, and this plugin made me comfortable doing project work in VSCode. I'll keep an eye on this thread for a day or two and try to add more essential hotkeys if I think of them.

All that `cmd`ing makes me feel like I'm in Emacs ;). I wonder if there's a way to bind those actions to vim-like keybindings.

Re: VSCode-Neovim: Use embedded Neovim in VSCode without emulation

#105
when I am not in Emacs+evil and I have to open vscode for launching the debugger I use vscodevim, I am not sure why people say it's too limited, it does the job more than allright for me and I tink I use vim keys and motion to its fullest....

sure it doesn't have :map or other commands but as far editing and moving around it work well for me....

as far vscode-neovim i have tried that but it was freezing too often for me (on osx and linux) I would have to restart the plugin extension host or something to get it fixed.... much nicer to have configuration in a .vim file tho compared to json based configuration of vscode-vim

I actually enjoy more idea emulation of vim which I think is much more advanced.... but vscode is a good middleground between an editor and ide or at least for my debugging sessions.

Re: VSCode-Neovim: Use embedded Neovim in VSCode without emulation

#106
post #68

Earlier quoted context omitted.

Whenever I didn't know how to do something or suspected there'd be a far more efficient way to go about it, I'd look up the magic words or keys to use and write them down. Limiting this cheatsheet to just one side of an A4 sheet kept it usable and forced me to rewrite it every so often - every next iteration leaving off all the commands I had been checking back often enough for that they had finally stuck. Completely…

The beauty of the whichkey/space menu is that you can both learn shortcuts AND find new ones (they're grouped by domain) AND find old shortcuts you rarely use. It's the antidote to most sophisticated editors worst problem, that there's a bajillion commands scattered around a million menus, many of which are not even remotely intuitive.

yep, that's why I want it

Re: VSCode-Neovim: Use embedded Neovim in VSCode without emulation

#107
post #88

Earlier quoted context omitted.

cmd-p is an absolute must if you use this plugin. Thanks for sharing!

I’ll add onto this, cmd-shift-p is the reason to use VS Code over neovim/vim. For every plug-in I’ve installed in vim, I used about 5% of their behavior. I’ve spent time looking through plug-in utilities and thought “oh that’s useful” and then forgotten about them by the next day. I’m aware that in vim, I can type :substring and get a list of commands. As far as I recall, I only get name matches. VSCode’s action sear…

Personally I use Telescope, which has a commands menu you can use to fuzzy find through all known commands similar to shift-p. That being said, I've removed almost all of my neovim plugins. stock vim/neovim is surprisingly capable

Re: VSCode-Neovim: Use embedded Neovim in VSCode without emulation

#108

Personally, my problem with trying to use Vim keybindings in VS Code is not about the motions of moving around/editing the code itself, but everything else. You end up in plenty of situations where you have to resolve using the mouse because you ended up on some sub-page or whatever, where you either need to resolve using the mouse or keep pressing Tab until you get to where you want to go. Installing plugins is one…

If only there was some sane oob setup for neovim with decent file exploring, and debugging.

what about https://www.lunarvim.org/ or https://astronvim.github.io/ or https://github.com/NvChad/NvChad ?

Re: VSCode-Neovim: Use embedded Neovim in VSCode without emulation

#109
post #18

I love neovim but I don’t have a good replacement for the git plugin of vscode. I haven’t found my way to replicating that experience in neovim. I tried lazygit but I find the diff viewer hard to understand and navigate. Diff view ( https://github.com/sindrets/diffview.nvim ) might be it, but I haven’t made the time to install a newer version of git from source (Debian…)

https://github.com/TimUntersberger/neogit & DiffView if I want everything inside neovim.

If I am just living in the terminal, I like to use a mix of https://github.com/extrawurst/gitui (doesn't support signed commits yet!) and https://github.com/Wilfred/difftastic which provides amazing semantic diffs.

Re: VSCode-Neovim: Use embedded Neovim in VSCode without emulation

#110
post #74

This seems like a lot of work to ultimately have a Frankenstein monster. Just use NeoVim. Name one reason why you need VSCode.

Best out of the box python experience out there.

No need to configure anything.

Company policies. ("we all use the same editor")

Post reply on HN