Live data from Hacker News

Onivim 2: Lightweight, Modal Code Editor

github.com

51–60 of 78 posts

Re: Onivim 2: Lightweight, Modal Code Editor

#51
post #8

Looks really nice, and it's cool to see something like this implemented in reason (OCaml really), but I don't see $35 worth of value compared to VSCode or MacVIM.

If you're going to stare at your editor much of every workday, does the price really matter that much? Even if it only makes you a bit happier than alternatives do, the price difference per hour used will be tiny. I'd wager most software developers can shell out $35 on a whim.

Right, we figured if it can save you just a few hours of configuration, it's paid for itself.

Re: Onivim 2: Lightweight, Modal Code Editor

#52
post #46
post #28

Earlier quoted context omitted.

I agree. I've been using vim for about a decade now. I love the editing experience. I really dislike the "IDE" experience (plugins, file navigation, etc). I've been seriously considering writing a new vim clone in go and build what I would consider the ultimate editor. Basically as if vim had been written today.

why not write in a system language like rust rather than go?

I am considering that too. For me Go is appealing because I can learn/steal a lot from Micro, a nice text editor written in Go.

Re: Onivim 2: Lightweight, Modal Code Editor

#53
post #4

I feel like a curmudgeon when say this but tools that make me leave my terminal ultimately never sit well. It always feels so limiting when you hit the point where you’re digging through the guts of some framework that basically a web app packaged as a desktop app. I see why people use it and maybe it not even a web app but I’m old enough to know vim gets me everything I need and using some ide desktop app is going t…

I love vim and have never met someone who used it more fluently than me. Yet I find it lacking. I can never get IDE features like code navigation and completion to really work. I use YouCompleteMe like everyone else but it’s just not as good as Jetbrains. It randomly stops working. Parameter hints don’t really work. This is for C++, by the way. The JavaScript situation is even worse. My dream is also for vim to be th…

I love Vim, but since I started working in TypeScript/React every day it is basically unusable (syntax highlighting / code formatting cannot match VSCode) so I'm now running VSCode + Vim extension which is kinda meh, but serviceable.

One of these days I will get around to contributing to a Vim plugin or two to help improve Typescript / TSX support.

Re: Onivim 2: Lightweight, Modal Code Editor

#54

I'm an advanced Vim user. I compile Onivim from source every couple of months to see what progress is like. My biggest problem with Onivim is that some of the design decisions reek of a design/development team that doesn't really grok Vim. Even if it was feature complete, it would be a slower Vim with a flashier UI and inconsistencies between the Onivim UX and Vim UX. As a specific example, the way Onivim uses tabs/s…

Thanks for checking out the project!

This is one of the biggest pieces feedback we've received both the tabs / splits in particular [1], and the more general issue of broader Vim compatibility [2].

We actually use a forked Vim implementation under the hood (libvim [3]) - as the modal-editing engine. So Onivim, in theory, _could_ support everything. The main issue is 'wiring up' features from libvim to our front-end.

We'll be focusing on this in our next milestone (July-Sep) - with the high level goals of supporting more traditional Vim workflows, Vim tab support, along with VimL plugin support and init.vim/vimrc compatibility.

Ultimately it's a prioritization problem - so having feedback like yours is really helpful, so that we can focus on the right priorities for that work.

- [1] https://github.com/onivim/oni2/issues/592

- [2] https://github.com/onivim/oni2/issues/1551

- [3] https://github.com/onivim/libvim

Re: Onivim 2: Lightweight, Modal Code Editor

#56
post #49
post #21

Is this another electron ide that takes minutes to copy paste in?

We built a new UI framework to support development called Revery: https://github.com/revery-ui/revery It's inspired by ReactJS, and has a similar API, but actually compiles to native code (not javascript). So you have a React-like developer experience, but with native perf.

That looks really nice - great job! There’s been a great amount of innovation in GUI libraries in the past two years. What’s the ffi story here? Can it be used as the frontend for a rust or C# application?

Re: Onivim 2: Lightweight, Modal Code Editor

#57
post #4

I feel like a curmudgeon when say this but tools that make me leave my terminal ultimately never sit well. It always feels so limiting when you hit the point where you’re digging through the guts of some framework that basically a web app packaged as a desktop app. I see why people use it and maybe it not even a web app but I’m old enough to know vim gets me everything I need and using some ide desktop app is going t…

I feel the same way, though I would want something a bit heavier than VIM. Something with syntax hinting/completion, and a file browser on the left. Basically just VS Code but in a terminal window. Really wish something like that existed (or maybe it does but I don't know about it).

You can have all that in vim - it just takes some set up.

syntax highlighting: https://github.com/sheerun/vim-polyglot

completion: https://github.com/neoclide/coc.nvim

file browser: https://github.com/preservim/nerdtree

how to install these plugins: https://github.com/junegunn/vim-plug

Re: Onivim 2: Lightweight, Modal Code Editor

#58
post #4

I feel like a curmudgeon when say this but tools that make me leave my terminal ultimately never sit well. It always feels so limiting when you hit the point where you’re digging through the guts of some framework that basically a web app packaged as a desktop app. I see why people use it and maybe it not even a web app but I’m old enough to know vim gets me everything I need and using some ide desktop app is going t…

I want to use Vim, but I don't want to set up all the plugins and figure all that out. I want it to "just work" like VSCode does. VSCode's Vim emulation isn't that great, though. Onivim 2 for the record is not a web app, it's a completely native app built in ReasonML (OCaml) and they even had to build their own GUI framework (Revery) to make this editor. It's extremely fast.

You can embed neovim inside VSCode nowadays, you should check it out.

Re: Onivim 2: Lightweight, Modal Code Editor

#59
post #55

I love these kinds of posts, if anything just because when I look at the github page and then the language breakdown, I get to ask "What the heck is reason?" and go find out!

I'd highly recommend Jordan Walke's (creator of React) talk on the ideas behind ReasonML: React to the Future [1].

I think it's so cool that you can take the ideas of ReactJS - functional programming applied to UI - but then have a language (ReasonML [2]) that is essentially purpose built for it, with OCaml [3] powering it under the hood - a functional programming language that's been significantly invested in, both in academia and industry. And to be able to take React-the-Idea, compile it cross-platform, to native-code... and ship.

- [1] Jordan Walke - React to the Future: https://www.youtube.com/watch?v=5fG_lyNuEAw

- [2] https://reasonml.github.io/

- [3] https://ocaml.org/

Re: Onivim 2: Lightweight, Modal Code Editor

#60

Earlier quoted context omitted.

I feel the same way, though I would want something a bit heavier than VIM. Something with syntax hinting/completion, and a file browser on the left. Basically just VS Code but in a terminal window. Really wish something like that existed (or maybe it does but I don't know about it).

You can have all that in vim - it just takes some set up. syntax highlighting: https://github.com/sheerun/vim-polyglot completion: https://github.com/neoclide/coc.nvim file browser: https://github.com/preservim/nerdtree how to install these plugins: https://github.com/junegunn/vim-plug

Thank you so much! Will try this out.
Post reply on HN