Write VIM plugins in JavaScript, powered by Electron
vim-electrify is a VIM plugin that enables the authoring of JavaScript plugins, running in a Node/Electron environment.
That shows some basic functionality in the API - both receiving messages and sending messages to VIM. The real power of this, though, is writing plugins in JavaScript - and leveraging all the rich debugging tools that are available in that ecosystem.
- vim-electrify-typescript-completion
- Provides autocompletion for TypeScript and JavaScript
- vim-electrify-markdown-preview
- A markdown preview engine, uses Electron's BrowserWindow
Currently, this plugin is only tested on Windows 10, with Vim. It should be relatively straightforward to make it work on OS X, however there will likely be some fixes required.
Other requirements are:
- Vim 7.4 (>1087 patch) with +clientserver and python enabled
- Node v4.4.2 or higher
- NPM v1.4.2 or higher
Optional dependencies that improve the plugin:
- UltiSnips
If using pathogen, clone this repository into your bundle folder.
Run 'npm run install'
The plugin has not yet been tested on OS X.
:SourceJS
- Executes the JavaScript in the current file against the running VIM instance.
Diagram Vim -> Send Events to Python -> TCP client talking to TCP server
TCP Server -> Send response to TCP client -> Execute asynchronously using the 'remote-execute' functionality
TODO
Nothing here yet :)
This is licensed under the MIT License.
Copyright 2016