This repository is being heavily developed. Everything is unstable.
:help design-not says:
Use Vim as a component from a shell or in an IDE.
NyaoVim is built in the same spirit. NyaoVim contains the Neovim editor as a Web Component and extends its UI with web technology, as in other modern editors and IDEs (e.g. Atom, VS Code, LightTable).
Memo: 'nyao' is 'meow' in Japanese and its pronounce resembles 'neo'. It is also an acronym for 'Not Yet Another Original'.
NyaoVim consists of Web Components on Electron as seen in the following figure. At first there is only
<neovim-editor> and you can add/remove additional components.
UI plugins are installable as easily as regular plugins. Each of them is written within 100~300 lines. You can also create reusable Web Components and integrate them into NyaoVim.
$ npm install -g nyaovim
If you haven't installed Neovim yet, please install it following Neovim's instructions because NyaoVim internally uses the
nvim command. Note that
nvim v0.1.6 or later is needed.
You can start NyaoVim with the
nyaovim command if you install this app with npm.
$ nyaovim [files...]
You would see a minimal Neovim GUI editor (like gVim). This is an Electron app and Neovim is drawn on
<canvas>. You can see the DevTools of this app with the 'Developer Tools' menu item.
On first start up of NyaoVim, it creates
~/.config/nyaovim/nyaovimrc.html for UI configuration (
%AppData% instead of
.config in Windows). Yes, you can extend and configure UI components with HTML and CSS!
I guess you're now thinking 'Hmm, font is not good and too small...'. You can configure some editor options by properties of
For example, below configures font face and font size by
font-size properties. Then set line-height to 1.5 (for example, Atom adopts 1.5 as line-height).
And you can also configure browser window options with
browser-config.json (e.g. Preserving window state, Single instance app, and so on). See tips for more detail.
For example, let's install nyaovim-popup-tooltip.
As described in the Goals section, a UI plugin is a normal Neovim plugin. You can install it like any other Neovim plugin. If you use vim-plug, all you need is adding below line to your
Then you need to put the popup tooltip UI on your NyaoVim interface. Please open
%AppData% instead of
.config in Windows). As described in the Goals section, a user can build a UI with HTML and CSS with high customization.
<popup-tooltip> tag under
<neovim-editor> tag as below
<popup-tooltip> is a Polymer component.
editor="[[editor]]" is a data binding to pass editor instance to
After installing nyaovim-popup-tooltip as a Neovim plugin and adding UI to HTML, you're all done! Open NyaoVim, move the cursor to any image path, and enter
gi. NyaoVim will load the image and show it in a popup tooltip as below.
There is more in documentation in the docs directory.
The Neovim logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.