Live data from Hacker News

Oni: Modern Modal Editing – Powered by Neovim

github.com

31–40 of 115 posts

Re: Oni: Modern Modal Editing – Powered by Neovim

#31
I do think I might prefer the approach of the asymptotic of development approaching vscode features with a base in pure Vim rather than the asymptotic approaching full Vim compatibility within vscode, and so I really want to like Oni.

What immediately struck me as "this project is not ready to use to actually code in" was trying to scroll with my Macbook's touchpad and it working pretty awfully. It seems like an obvious enough issue that it _has_ to be being worked in, but maybe not and I should report it.

Re: Oni: Modern Modal Editing – Powered by Neovim

#32
post #25
post #23

Earlier quoted context omitted.

>but the value proposition is: neovim, with vscode compatible snippets and typescript-language-server-driven autocomplete (also works with vanilla JS) out of the box. Perhaps a dumb question, but wouldn’t it be a better idea to make a proper vscode/neovim plugin?

It's not really the same use case though, a vscode extension is limited by the vscode API, but I imagine if someone manages to make an extension that is just a wrapper around a neovim process it will be pretty compelling. Making a neovim plugin wouldn't get you the graphical IDE features like an embedded browser and/or graphical debugger.

The current vim plugin from VSCode uses neovim under the hood, at least for some operations

Re: Oni: Modern Modal Editing – Powered by Neovim

#34
post #7
post #5

not really impressed, quite far behind from geany and vscode, vim is handy enough too, so what's the selling point that I have missed?

You are comparing an alpha/beta with a full product. The selling point is the future where Vim becomes a native integration in your IDE (or actually the other way around) instead of a plugin which is never completely supporting all Vim options. Or at least that’s my take on it.

comoecicirra keia

Re: Oni: Modern Modal Editing – Powered by Neovim

#35

I do think I might prefer the approach of the asymptotic of development approaching vscode features with a base in pure Vim rather than the asymptotic approaching full Vim compatibility within vscode, and so I really want to like Oni. What immediately struck me as "this project is not ready to use to actually code in" was trying to scroll with my Macbook's touchpad and it working pretty awfully. It seems like an obvi…

This has been an issue for some time, tracked in (https://github.com/onivim/oni/issues/1568) and (https://github.com/onivim/oni/issues/405).

Unfortunately is not an easy task to accomplish at the moment, due to the way vim scrolling is tied with the terminal approach (line by line), does not seem as a hard block though and hopefully can be improved.

Since most of the time you are scrolling with keybindings when using vim this may not be as big of an issue for most vim users (I never had issues in my experience), but certainly desirable to fix as it's a dealbreaker some.

Re: Oni: Modern Modal Editing – Powered by Neovim

#36
post #26
post #2

Looks great. Two questions: 1. I wonder though why you/team didn't opt for extending the vim emulation - via a plugin - on VS Code. Did the exposed API limit you from doing so? Edit: Having used the extensions of VSCode, I am wondering if that is the case. 2. Does it support installation of sublime/atom/vscode plugins?

Author here - that's a great question on VSCode. I actually tried really hard to get my 'Vim workflow' to work with VSCode - even creating a plugin for relative numbering. I'm a big fan of the work that the VSCodeVim / VSCodeNeovim teams are doing as well! There were two challenges I faced: 1. Performance - I'm very sensitive to typing latency. I wanted to leverage Neovim to its full potential. IMO, there is a tremen…

Thanks for a response. I just installed it and do think that it is missing a few features that are important to me (as in, these are my opinions):

1. Syntax (missing for Elixir)

2. Shortcuts (even preferences shortcut is missing)

3. Easier configuration API; I think currently, you give us the "entire React app", rather get something simple.

I have the application downloaded; assuming you have autoupdates. I will keep an eye out; excited to see where this goes.

Re: Oni: Modern Modal Editing – Powered by Neovim

#37

I do think I might prefer the approach of the asymptotic of development approaching vscode features with a base in pure Vim rather than the asymptotic approaching full Vim compatibility within vscode, and so I really want to like Oni. What immediately struck me as "this project is not ready to use to actually code in" was trying to scroll with my Macbook's touchpad and it working pretty awfully. It seems like an obvi…

The main issue preventing smooth scrolling is it will require each split to be an independent neovim instance, which is (in my opinion) not quite as nice as native splits. There is a feature in development that does use a separate view for each split and smooth scrolling is possible if you are willing to give up your native splits. In practice I haven't noticed it because I don't use the mouse for scrolling.

Re: Oni: Modern Modal Editing – Powered by Neovim

#38
post #4

It says it's powered by React and (presumable) Electron - does it have the same kind of issues that Atom does? Can it open big files, how responsive is it, etc. How do plugins work? Do neovim plugins work out of the box with Oni, do you have to write a wrapper, or are they completely incompatible? This is really the make or break part of it.

If you're comparing Oni to Atom, the architecture is actually quite different. Oni uses Neovim at the core to manage buffers & buffer manipulation (in other words, a native layer vs JavaScript in Atom) - this is a major benefit when working with large files. In addition, Oni uses a canvas renderer for the editor surface vs the DOM used by Atom. Together, these significantly improve the responsiveness of the tool. Architecturally, Oni is more similiar to the Xray project being investigated by the GitHub team: https://github.com/atom/xray.

Most neovim plugins work great with Oni :) Just set the `oni.loadInitVim` configuration value to `true`: https://github.com/onivim/oni/wiki/Configuration#oni

Re: Oni: Modern Modal Editing – Powered by Neovim

#40
post #8

The project README.md doesn't do justice to the improvements that Oni has been pumping out. Some new stuff in the unreleased/development version (hidden behind feature-flags): * Keyboard-driven navigation of embedded web browser: https://twitter.com/oni_vim/status/977280220234268673 * Live reload with embedded browser: https://twitter.com/oni_vim/status/976502172891299840 However personally I just love the scrollbar:…

you can use nvim-qt or neovim-gtk and keep having a minimalism experience.
Post reply on HN