Live data from Hacker News

What's New in Neovim 0.10

gpanders.com

101–110 of 134 posts

Re: What's New in Neovim 0.10

#101
post #42

"Nvim 0.10 can now use the OSC 52 escape sequence to write to (or read from) the system clipboard." This is a big deal! (it shouldn't be, but it is) My main complaints about vim/emacs in the past was at the sheer complexity of getting something that should not even be a concern (clipboard integration) working properly, when other text/code editors did not have this problem at all. Searching online, it seems like tmux…

> My main complaints about vim/emacs in the past was at the sheer complexity of getting something that should not even be a concern (clipboard integration) working properly

What problems have you encountered? I have the following shortcuts in my .vimrc:

    vnoremap y "*y
    noremap p "*p
    vnoremap c "+y
    noremap v "+p
Space + y/p is the copying/pasting from/to the "primary selection" (the mouse middle click). Space + c/v is copying/pasting from/to the regular ctrl+c/ctrl+v clipboard.

This... just works for me?

Re: What's New in Neovim 0.10

#102
post #79
post #16

Neovim is great and is my daily driver for a couple of years now. I was really looking forward to 0.10 because the roadmap said "multicursor", and that's the only thing that sometimes make me open Sublime Text, but it seems like it was more complex to implement than originally estimated and so it was now pushed to 0.12 ( https://neovim.io/roadmap/ ).

I used to want multicursor as well. But I heard a recommendation that multicursor is not "the vim way", and instead to use macros or regex search-and-replace or visual-block mode. That's worked for me. Of course multicursor must be commonly requested for a reason. Just passing along some alternatives.

I think multicursor vs macro is basically a case of whether the feedback is instant, rather than delayed.

Multicursor (in other editors) is a lot better, because you don’t have to think about which exact motion to use as much (since you can see it as you do them).

On the other hand, macros and vim motions are a lot more general, but require you to think about the exact motions a lot more ahead of time.

I think substitution (and command) previews (vs not having these features when substituting) is a good parallel to what multicursor adds over just macros.

Re: What's New in Neovim 0.10

#103

Earlier quoted context omitted.

you should use neovim distributions like LazyVim.

I did use Lazyvim. It was definitely better (though I spent a fortune in time modularizing is plugins). It just doesn't feel like a great solution for a variety of reasons. You're still a little on the hook for plugins and LSP configs. You're beholden to the distro e.g. if Lazy ever grows obsolete, Lazyvim could go too. In a perfect world there would be a neovim core (what it is now) and a formal neovim distro.

There's just a lot more innovation and development in the offshoot projects than in the big projects. The main project is gradually agreeing on /some/ default key bindings for lsps, as seen in this release (core does a great job on neovim no offense meant there.)

In the same time, LazyVim and AstroNvim have built whole worlds of configuration and LSP integration because they are free to tinker, at a speed far outpacing core neovim. Because the core project wants/needs to cater to everyone. Even you said it was a straight upgrade (to Vim, I assume) and just keeping it that way is not easy.

Re: What's New in Neovim 0.10

#104
post #70
post #29

I tried to switch to nvim but quickly discovered that there are breaking changes that just don't work for me, like system() not being interactive and having to use term. nvim might be great for some but it's not a vim replacement, it's a different editor with different drawbacks.

Is `!` still broken? Last I looked there seemed to be resistance to fixing it.

Yes, ! has the same issues as system() which I'd need to integrate with lf.

Re: What's New in Neovim 0.10

#105
post #49
post #37

Earlier quoted context omitted.

And input limitations can be resolved by non-terminal UIs (for example like Ctrl+i and Tab being mapped to the same control character in old terminals - that one is solved by newer protocols, but the problems don't end there.)

also even the newer protocols fail to support modifier sides (left vs right shift)

Kitty keyboard protocol does indeed support modifier sides.

Re: What's New in Neovim 0.10

#106
post #37
post #13

Earlier quoted context omitted.

If neovim had a proper gui, you could move away from some of the limitations of the terminal. The biggest being using fixed width characters for drawing UI elements. Emacs does it pretty well, one of the few things that makes me jealous of emacs as a vim user.

And input limitations can be resolved by non-terminal UIs (for example like Ctrl+i and Tab being mapped to the same control character in old terminals - that one is solved by newer protocols, but the problems don't end there.)

Neovim already supports these keys as long as you are using a terminal that supports the Kitty keyboard protocol (Kitty, wezterm, alacritty, foot, ghostty)

Re: What's New in Neovim 0.10

#107
post #16

Neovim is great and is my daily driver for a couple of years now. I was really looking forward to 0.10 because the roadmap said "multicursor", and that's the only thing that sometimes make me open Sublime Text, but it seems like it was more complex to implement than originally estimated and so it was now pushed to 0.12 ( https://neovim.io/roadmap/ ).

What's the difference between multicursor and visual block? Genuinely curious, is it that things don't have to be vertically aligned? What's the ux expectation in a pure keyboard based workflow?

Yeah I think that's it. You can place the cursors arbitrarily with Ctrl+mouse3 in editors like VSCode, ST3, IIRC. Multiple cursors in one line is a scenario I don't think visual block would be great for. I say this as an nvim user who uses macros and will occasionally copypaste a block into VSCode just if i'm feeling lazy and want to multicursor something.

Re: What's New in Neovim 0.10

#108
Awesome release! Ditching my colorschemes and going for the default one. Looks like i can drop even more deps like vim-commentary, and i can remove some keybindings that now come as default!

Neovim keeps getting better and better!

Re: What's New in Neovim 0.10

#109

As a decade long vim user, I just gave nvim a try this year, and I really wanted to like it. In most every way it is a straight upgrade, but I find myself kind of bummed out that it is still so barebones on install. Really, I was hoping that something like Lazyvim would be the default because I would love a more "out-of-the-box" solution. I don't want to have to worry about keeping the LSP etc. up to date. So instead…

> bummed out that it is still so barebones on install.

Helix might be your cup of tea then.

https://helix-editor.com

(Though it will take awhile getting use to the inverted keybindings)

Re: What's New in Neovim 0.10

#110

As a decade long vim user, I just gave nvim a try this year, and I really wanted to like it. In most every way it is a straight upgrade, but I find myself kind of bummed out that it is still so barebones on install. Really, I was hoping that something like Lazyvim would be the default because I would love a more "out-of-the-box" solution. I don't want to have to worry about keeping the LSP etc. up to date. So instead…

I've settled on LazyVim after many happy years with Jetbrain IDEs and very few unhappy years with VS Code. I have the impression that most Neovim users are building their own config, which is great, if you have the knowledge and personal resources.

I would still recommend spending some time understanding how the config generally works (e.g. by reading kickstart and watching TJs video or/and typecraft's videos). But then, I'd recommend to the person who just wants the best IDE experience to just use LazyVim (or other full blown distributions like AstroNvim). Great discoverability. Lots of features. I use LazyVim with LazyExtras. No customization except the color scheme and adding LSP and TS for Svelte and Rust. I got to work on my projects immediately.

My problem with Helix is that there're many for me important IDE features missing (which you get with LazyVim or AstrNVim or NVChad), decisions of the maintainers regarding the priorities and the that vim keybindings are ubiquitous.

Post reply on HN