Ⅰ. 插件描述
JavaScript port of VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'coolwanglu/vim-js'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'coolwanglu/vim-js'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'coolwanglu/vim-js'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/coolwanglu/vim.js
Ⅳ. 文档说明
### Vim.js : JavaScript port of Vim
A Tool/Toy for Non-Beginners
by Lu Wang
Try it online
Variations
Recommended browsers: Firefox, Chrome, IE
Vim.js Features
- ASM.js enabled
- Persistent
~/.vimrc - Execute JavaScript from Vim.js
- Read local files
- Read files from Dropbox
Run :e $VIM/vimrc for more detail.
Vim Features
The online demo is built with the small feature set (--with-features=small),
with also a few from the normal set.
Run :version to check details.
(--with-features=normal is too large and too slow for online usage.)
Some features can be requested via pull requests, some are not intended to be included.
Please discuss with me first before you work on a PR.
Tips for hackers
- Need emscripten with ASYNCIFY enabled
- Need GCC & cproto (maybe) — Sometimes you need to run
make protowhen you see errors about 'undeclared variables/functions/structs' or '*.pro' file not found - Read
build.sh - The building process might take lots of memory
Contact
Lu Wang coolwanglu(a)gmail.com — please do not expect a prompt response.
License
Read LICENSE