Live data from Hacker News

Neovim 0.7 Released

github.com

201–210 of 220 posts

Re: Neovim 0.7 Released

#201

Earlier quoted context omitted.

I could ask the opposite: why do people choose terminal vim when you can easily add nvim integration to editors like VSCode and get 98-100% of what vim gives you along with much easier configuration of all those extras you mention like autocomplete, hover reference, refactor, etc.? That's a bit of an overstatement, because I really do love vim/nvim and nvim integration isn't that good, but the fact is that adding a f…

The 100% full reason for me was that I had a job where I needed to SSH into our prod server about once per month and tweak some files. I was so terrified every time I had to do it because I was afraid of vim and/or nano in those situations. So I decided to get competent so I trusted myself not to make huge mistakes. After about a week of using vim it clicked and I knew I couldn't go back to Sublime Text. As for VS Co…

You can use Sublime Text remotely though, just requires some effort to set up.

My issue with Vim is remote servers and containers never have my (awesome) config.

It still pays off to know some basic Vim keybinds. You can often use them in other applications and every once in a while some machine only has vi. That said I grew up with DOS, do ctrl keybinds feel natural to me. Its just nigh annoying switching from macOS to Linux given the position of ctrl/fn/alt/super are different.

Re: Neovim 0.7 Released

#202
post #76

Earlier quoted context omitted.

Install it via nix, or if nix is too big a leap, via conda.

Without admin privileges, it's not trivial to use nix.

The nvim on my work laptop is old being from Ubuntu 21.10 so I went with Nix (because I dont like Snap). Fairly easy to set up, Nix is even included in Ubuntu repo.

You only have to install it once, and update things like update-alterrnatives or play with $PATH.

Re: Neovim 0.7 Released

#203

Earlier quoted context omitted.

Not sure how that's relevant here. Is Tesla (the cars) a fork of McLaren with changes after doing the fork? Neovim is literally a vim fork, with .lua supported everywhere .vim is used and many other additions/changes/removals.

Correct. Tesla is a fork of a Lotus not a Maclaran.

Tesla is a car brand, not one model? You're thinking specifically about the Tesla Roadster I think.

Re: Neovim 0.7 Released

#204

I did a brief write up on some of the biggest new features here: https://gpanders.com/blog/whats-new-in-neovim-0-7/

> One use case for the new remote functionality is the ability to open files from the embedded terminal emulator in the primary Neovim instance, rather than creating an embedded Neovim instance running inside Neovim itself. Hmm, if I type "git commit" within the terminal, is there some value of $EDITOR that would make it launch a buffer to edit the commit message, then finish when I close the buffer? (and if so, are…

For that to work, you'll need the 'wait' versions of the remote flags. Those are still being worked on in a PR, but I'm hoping to finish them up by the next release: https://github.com/neovim/neovim/pull/17856

That said, this sort of remote opening has been possible in Neovim since the client-server stuff was added in the early days. This is only adding the remote editing flags and implementation to Neovim itself to make it easier.

Neovim-remote(https://github.com/mhinz/neovim-remote#typical-use-cases) is an outside-of-Neovim way to do it with the Python client. It has an $EDITOR setting listed there. Or if you don't want to use Python, you can use invim(https://github.com/groves/invim#to-use-as-your-git-commit-me...). It's just a shell script. Or you can wait for the next release!

Re: Neovim 0.7 Released

#205
post #162

I will never understand why people choose VSCode/Jetbrains over a terminal based editor. I can edit the kernel with clangd and get hover reference, autocomplete, go to def, ref, dec, smart refactor, and that's on top of being able to easily jump and fix lint/bugs using Vim's already great support for parsing compiler errors. With term added (which is a core Vim feature) it also has excellent support for gdb debugging…

> I can use my editor over ssh and edit anywhere, I don't need a GUI to even be installed on the system where I have all of my cores and RAM for compiling the kernel, I can use VS Code in the browser: https://github.com/coder/code-server > it starts up instantly, I launch my editor once a day. Why do you need to keep killing and starting your editor? > and it's completely free and open source, OK, so is VS Code, or a…

Emacs would like to have a word. But seriously, that would not be an important feature to me. Obviously everyone has their preferences.

Re: Neovim 0.7 Released

#206
post #83

Earlier quoted context omitted.

I find Coc.nvim plugins for neovim are virtually just as easy to set up as VS code plugins, VS code is a power hog and performs worse, and the vim bindings are rough around the edges with macros in particular. VS Code with a vim plugin is not a bad experience, but neovim+coc.nvim is just much snappier.

That may be, but this is the first time I've heard of coc.nvim and I've used neovim for years. So I'll bookmark this and at some point I'll look into it and do some research and figure out how to configure it and compare it to competitors, but is all that really worth the very slight performance advantages we're talking about? I can't type 1000wpm after all. Sure, VSCode is a power hog and it's slow, but I make prett…

Yeah I agree about it being something that's done because you enjoy it. Talking about what's an efficient use of time is so strange to me though, not to single you out in particular. It's like we're pretending our lives are so hyper-optimized that everything is a delicate trade-off. I spend a few hours here and there messing around with my setup because I want it to feel nice to use. It's not like I traded a couple hours of productive programming time for that. Sometimes I spend a few hours watching a movie.

For me a snappy editor experience, and vim in general, is about comfort, not optimizing for some theoretical top editing speed. I don't think I'd be a drastically worse programmer if I were forced to use windows notepad to edit code, I would just be more uncomfortable all the time.

Re: Neovim 0.7 Released

#208

Earlier quoted context omitted.

Vim/Neovim/Emacs/etc. require a certain "commitment" to them - you have to learn keybindings, for example. Moreover, if you want any fancy IDE features you're addicted to, like hints, autocomplete, static analysis, refactoring, etc. you have to configure it yourself, which still isn't quite straightforward as selecting a plugin in VSCode (perhaps this is a good feature idea?). Most people just don't think it's worth…

> you have to learn keybindings, Are people seriously training their muscle memory to the default vim keybinding that is so cryptic I don't know what to say. Since the early days of learning vim, I've changed the "go to end of line" bound as "-" which is next to "0" for "go to start of line" which is way more logically placed than some "^" that even needs shift pressed. If anyone thinks "because default works on any…

> Are people seriously training their muscle memory to the default vim keybinding that is so cryptic I don't know what to say.

Nobody does that on purpose. It's just a side-effect of learning Vim.

Re: Neovim 0.7 Released

#209

Earlier quoted context omitted.

> you have to learn keybindings, Are people seriously training their muscle memory to the default vim keybinding that is so cryptic I don't know what to say. Since the early days of learning vim, I've changed the "go to end of line" bound as "-" which is next to "0" for "go to start of line" which is way more logically placed than some "^" that even needs shift pressed. If anyone thinks "because default works on any…

> Are people seriously training their muscle memory to the default vim keybinding that is so cryptic I don't know what to say. Nobody does that on purpose. It's just a side-effect of learning Vim.

Why do you accept it as a given and not customize it?

Re: Neovim 0.7 Released

#210
post #162

Earlier quoted context omitted.

> I can use my editor over ssh and edit anywhere, I don't need a GUI to even be installed on the system where I have all of my cores and RAM for compiling the kernel, I can use VS Code in the browser: https://github.com/coder/code-server > it starts up instantly, I launch my editor once a day. Why do you need to keep killing and starting your editor? > and it's completely free and open source, OK, so is VS Code, or a…

Linux newbies jumping into Microsoft's arms is still something I'm trying to wrap my head around.

Tools are tools. If they work well, great, if Microsoft tries to wreck VSCode for some reason, then people will switch.
Post reply on HN