Live data from Hacker News

Neovim v0.4.0

github.com

31–40 of 168 posts

Re: Neovim v0.4.0

#32

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.

Replying to PeCaN:

> slightly concerned that neovim started to cut bloat in vim and ended up implementing a compositing window manager with fake transparency.

"Window manager" existed since vim got split-windows (1990s). Redesigning it as a compositor:

- isolates windows logically, so that UIs can do their own layout instead of being stuck with the TUI grid

- useful for implementing floating windows

- allows reasoning about layers instead of one grid driven by special-cases throughout the project

- helps with features such as "click through", z-index, etc.

The blending (fake transparency) was a small (~200 LoC) amount of code, added only for fun (and to ruffle feathers).

Re: Neovim v0.4.0

#33
post #28

Earlier quoted context omitted.

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.

Vim already had floating windows, why not make them cool/useful if they're there, anyway? :)

Re: Neovim v0.4.0

#34

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 just tried this. I get rendering artifacts when scrolling.

BUT! The scroll speed is absolutely wonderful. I've tried all the UIs and always find myself going back to the terminal, but this is something else.

Although I have to say fvim looks tempting as well and vimr(I'm not on MacOS anymore).

For those people mocking vim users and bragging about their IDE's. With languageserver and the other kind of refactoring daemons available for a whole host of languages nowadays these editors are much closer to IDE's than ever before.

The only things that are not really first class citizens are IMHO:

1. refactoring(outside of C++ and Java)

2. profiling

3. breakpoints

EDIT: I'm quite happy with the tmux setup I have but thanks for the suggestions. The main problem I see with neovim is that the separation of the python library while nice for update iterations causes issues with virtual environments.

Re: Neovim v0.4.0

#35
post #12

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

I have been running it for quite a few months and there are two improvements that I can think of: 1) In visual mode you have a block cursor and in insert mode it is a |. 2) With ':set inccommand=nosplit' you get live previews for substitution calls. For example :%s/foo/bar/ will update your foos on screen whilst you type the command. Otherwise it is pretty much a drop-in replacement without issues.

> Otherwise it is pretty much a drop-in replacement without issues.

Except for the crashes. The crashes are an issue.

Don't get me wrong though, I like nvim. I use it occasionally.

But the crashes are an issue.

Re: Neovim v0.4.0

#36
post #35

Earlier quoted context omitted.

I have been running it for quite a few months and there are two improvements that I can think of: 1) In visual mode you have a block cursor and in insert mode it is a |. 2) With ':set inccommand=nosplit' you get live previews for substitution calls. For example :%s/foo/bar/ will update your foos on screen whilst you type the command. Otherwise it is pretty much a drop-in replacement without issues.

> Otherwise it is pretty much a drop-in replacement without issues. Except for the crashes. The crashes are an issue. Don't get me wrong though, I like nvim. I use it occasionally. But the crashes are an issue.

Interesting. Are you using some sophisticated plugins, some unusual platform?

I've aliased vim to neovim a few years ago and it has not crashed once for me.

Re: Neovim v0.4.0

#37
post #28

Earlier quoted context omitted.

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.

On the bright side, this is actually a demonstration of the extensive work the neovim team has done cleaning up the UI layers. justinmk's comment above goes into more detail, but basically vim has gone from having a single array of characters that gets manipulated by every type of display item to windows with their own positioning and dimensions. In addition, these windows will be exposed via APIs that external GUIs can use.

Re: Neovim v0.4.0

#38
On this topic, can anyone share their Python setup for Neovim?

I used ALE and Deoplete + a bit of Jedi and got frustrated with it breaking / working much worse than ST3 and just removed all the plugins.

Re: Neovim v0.4.0

#39
post #35

Earlier quoted context omitted.

I have been running it for quite a few months and there are two improvements that I can think of: 1) In visual mode you have a block cursor and in insert mode it is a |. 2) With ':set inccommand=nosplit' you get live previews for substitution calls. For example :%s/foo/bar/ will update your foos on screen whilst you type the command. Otherwise it is pretty much a drop-in replacement without issues.

> Otherwise it is pretty much a drop-in replacement without issues. Except for the crashes. The crashes are an issue. Don't get me wrong though, I like nvim. I use it occasionally. But the crashes are an issue.

After using nvim for several years, I've never seen it crash once.

Re: Neovim v0.4.0

#40
post #35

Earlier quoted context omitted.

I have been running it for quite a few months and there are two improvements that I can think of: 1) In visual mode you have a block cursor and in insert mode it is a |. 2) With ':set inccommand=nosplit' you get live previews for substitution calls. For example :%s/foo/bar/ will update your foos on screen whilst you type the command. Otherwise it is pretty much a drop-in replacement without issues.

> Otherwise it is pretty much a drop-in replacement without issues. Except for the crashes. The crashes are an issue. Don't get me wrong though, I like nvim. I use it occasionally. But the crashes are an issue.

[deleted]
Post reply on HN