Ⅰ. 插件描述
Vim2browser is Vim plugin to send texts to a browser from Vim.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'shikato/vim2browser-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'shikato/vim2browser-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'shikato/vim2browser-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/shikato/vim2browser.vim
Ⅳ. 文档说明
# vim2browser.vim
Vim2browser is Vim plugin to send texts to a browser from Vim.

You can use this software only in Mac.
Because this software uses JXA.
This plugin dependes on no style paste with [shift + command + v].Download
ex. NeoBundle
.vimrc
NeoBundle 'shikato/vim2browser.vim'Usage
| Command | Action |
|---|---|
| :Vim2BrowserSetVimAppName something | The command sets Vim application name. (Default: MacVim) |
| :Vim2ChromeReplaseAll | The command replaces texts of focused textarea of Chrome with all texts of Vim. |
| :Vim2ChromeReplaseSelected | The command replaces texts of focused textarea of Chrome with selected texts of Vim. |
| :Vim2ChromeAppendAll | The command appends all texts of Vim to a focused textarea of Chrome. |
| :Vim2ChromeAppendSelected | The command appends selected texts of Vim to a focused textarea of Chrome. |
| :Vim2ChromeReplaseAllNotActivateVim | The command replaces texts of focused textarea of Chrome with all texts of Vim. The command doesn't activate Vim after replasing. |
| :Vim2ChromeReplaseSelectedNotActivateVim | The command replaces texts of focused textarea of Chrome with selected texts of Vim. The command doesn't activate Vim after replasing. |
| :Vim2ChromeAppendAllNotActivateVim | The command appends all texts of Vim to a focused textarea of Chrome. The command doesn't activate Vim after appending. |
| :Vim2ChromeAppendSelectedNotActivateVim | The command appends selected texts of Vim to a focused textarea of Chrome. The command doesn't activate Vim after appending. |
| :Chrome2VimReplaseAll | The command replaces texts of Vim with all texts of focused textarea of Chrome. |
| :Chrome2VimReplaseSelected | The command replaces texts of Vim with selected texts of focused textarea of Chrome. |
| :Chrome2VimAppendAll | The command appends all texts of focused textarea of Chrome to Vim. |
| :Chrome2VimAppendSelected | The command appends selected texts of focused textarea of Chrome to Vim. |
Other documents
License
MIT