Live data from Hacker News

Neovim v0.4.0

github.com

21–30 of 168 posts

Re: Neovim v0.4.0

#21

I'll just leave a shameless plug for my neovim GUI project here: https://github.com/vhakulinen/gnvim . It has a WIP PR[1] for implementing multigrid support, which would allow features such as scrollbars. There are many other GUIs too, such as oni/oni2, gonvim, neovim-gtk and neovim-qt. Extensive list can be found here: https://github.com/neovim/neovim/wiki/Related-projects#gui 1: https://github.com/vhakulinen/gnvim/…

I'm using vimr [1] and never had issues with it

1: https://github.com/qvacua/vimr

Re: Neovim v0.4.0

#22
post #13

Earlier quoted context omitted.

Both neovim-gtk & gnvim are great but don't integrate nicely with standard ctrl + c, ctrl + v actions which is super frustrating. VSCode with vim plugin handles this well with the Use Ctrl Keys option set. If you're in insert mode, ctrl + v will paste, otherwise ctrl + v will start visual mode. If you are selecting text, ctrl + c will copy.

You can create mappings for that. Adding a bazillion one-off options like "Use Ctrl Keys" to avoid creating mappings, defeats the purpose of using vim, since creating mappings is the bare minimum way to configure it. (But Vim did so anyways for Windows, in the form of the "mswin.vim" plugin, which is enabled by default, causing confusion for users expecting vim to behave like vim.)

I wouldn't even know where to begin to approach these mappings as they are highly context dependent. If it is possible with just normal vim mappings then that'd be excellent.

Re: Neovim v0.4.0

#23
post #21

I'll just leave a shameless plug for my neovim GUI project here: https://github.com/vhakulinen/gnvim . It has a WIP PR[1] for implementing multigrid support, which would allow features such as scrollbars. There are many other GUIs too, such as oni/oni2, gonvim, neovim-gtk and neovim-qt. Extensive list can be found here: https://github.com/neovim/neovim/wiki/Related-projects#gui 1: https://github.com/vhakulinen/gnvim/…

I'm using vimr [1] and never had issues with it 1: https://github.com/qvacua/vimr

I've had a reasonable number of crashes with VimR. It's definitely got a lot better, but not enough that I'd use it for work.

Re: Neovim v0.4.0

#24
post #6

Earlier quoted context omitted.

Floating windows: - Are real windows showing real buffers. No shortcuts, hacks, or compromises. - Can be (re)positioned, anchored, or "external" (if supported by the UI). - Support all features and API of normal windows, plus more. Screenshot showing floating window with 'winblend': https://twitter.com/Neovim/status/1145446583573594112 Yes, that screenshot shows Nvim in a terminal. The 'winblend' feature works in all…

Just to make sure I understand correctly, that floating window is entirely within neovim (i.e. it isn't a separate window as far as your window manager is concerned)? And if that's correct, does this mean that it would work if you SSHed into a server?

yes and yes.

Re: Neovim v0.4.0

#25
post #6

Earlier quoted context omitted.

Floating windows: - Are real windows showing real buffers. No shortcuts, hacks, or compromises. - Can be (re)positioned, anchored, or "external" (if supported by the UI). - Support all features and API of normal windows, plus more. Screenshot showing floating window with 'winblend': https://twitter.com/Neovim/status/1145446583573594112 Yes, that screenshot shows Nvim in a terminal. The 'winblend' feature works in all…

Just to make sure I understand correctly, that floating window is entirely within neovim (i.e. it isn't a separate window as far as your window manager is concerned)? And if that's correct, does this mean that it would work if you SSHed into a server?

Yes, neovim is compositing the windows inside the text UI in a terminal.

Re: Neovim v0.4.0

#26
post #22

Earlier quoted context omitted.

You can create mappings for that. Adding a bazillion one-off options like "Use Ctrl Keys" to avoid creating mappings, defeats the purpose of using vim, since creating mappings is the bare minimum way to configure it. (But Vim did so anyways for Windows, in the form of the "mswin.vim" plugin, which is enabled by default, causing confusion for users expecting vim to behave like vim.)

I wouldn't even know where to begin to approach these mappings as they are highly context dependent. If it is possible with just normal vim mappings then that'd be excellent.

    inoremap  +
    vnoremap  "+y
    cnoremap  +

Re: Neovim v0.4.0

#27
post #12

What are the most notable improvements over vim that the authors of neovim speak of? https://neovim.io

The only reason Neovim project exists in the first place is to act as a safeguard against the bus factor issues that might arise in the Vim proper.

It also exists because the vim BDFL refused to merge some patches, notably async (vim did get async after it was proven a success in neovim). Since the fork neovim has modernized and cleaned up the codebase, and has an ambitious feature roadmap which includes adding Lua as a plugin language and adding APIs for external GUIs.

https://neovim.io/roadmap/

Re: Neovim v0.4.0

#28

Earlier quoted context omitted.

Just to make sure I understand correctly, that floating window is entirely within neovim (i.e. it isn't a separate window as far as your window manager is concerned)? And if that's correct, does this mean that it would work if you SSHed into a server?

Yes, neovim is compositing the windows inside the text UI in a terminal.

That's an extremely cool party trick but I'm also slightly concerned that neovim started to cut bloat in vim and ended up implementing a compositing window manager with fake transparency.

Though the idea is just pretty damn cool in general so I can't get too grumpy about it.

Re: Neovim v0.4.0

#29
post #2

> nvim_open_win: create floating windows (and external, for supporting UIs) I've been running 0.4.0 since it came out for this feature. Also I recommend you check out coc.vim for the best completer. It uses the same language server protocol that VS Code uses (and many of the plugins for coc.vim are forked fr VS Code plugins)

All completers will be able to utilize floating windows immediately, so it's not a special feature of coc.nvim. Using LSP is also not unique to coc.nvim. Deoplete, for instance, supports both as well. I personally have no interest in using coc since it's a javascript based project.

Re: Neovim v0.4.0

#30
post #2

> nvim_open_win: create floating windows (and external, for supporting UIs) I've been running 0.4.0 since it came out for this feature. Also I recommend you check out coc.vim for the best completer. It uses the same language server protocol that VS Code uses (and many of the plugins for coc.vim are forked fr VS Code plugins)

Are there any good alternatives for coc.vim? I do not like the NodeJS dependency.
Post reply on HN