vim2browser.vim


Ⅰ. 插件描述

Vim2browser is Vim plugin to send texts to a browser from Vim.

Ⅱ. 基本信息

创建日期:  2015-11-23
使用用户:  3
Github星:  8
插件作者:  shikato

Ⅲ. 安装方法

使用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.

demo1

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

CommandAction
:Vim2BrowserSetVimAppName somethingThe command sets Vim application name. (Default: MacVim)
:Vim2ChromeReplaseAllThe command replaces texts of focused textarea of Chrome with all texts of Vim.
:Vim2ChromeReplaseSelectedThe command replaces texts of focused textarea of Chrome with selected texts of Vim.
:Vim2ChromeAppendAllThe command appends all texts of Vim to a focused textarea of Chrome.
:Vim2ChromeAppendSelectedThe command appends selected texts of Vim to a focused textarea of Chrome.
:Vim2ChromeReplaseAllNotActivateVimThe command replaces texts of focused textarea of Chrome with all texts of Vim. The command doesn't activate Vim after replasing.
:Vim2ChromeReplaseSelectedNotActivateVimThe command replaces texts of focused textarea of Chrome with selected texts of Vim. The command doesn't activate Vim after replasing.
:Vim2ChromeAppendAllNotActivateVimThe command appends all texts of Vim to a focused textarea of Chrome. The command doesn't activate Vim after appending.
:Vim2ChromeAppendSelectedNotActivateVimThe command appends selected texts of Vim to a focused textarea of Chrome. The command doesn't activate Vim after appending.
:Chrome2VimReplaseAllThe command replaces texts of Vim with all texts of focused textarea of Chrome.
:Chrome2VimReplaseSelectedThe command replaces texts of Vim with selected texts of focused textarea of Chrome.
:Chrome2VimAppendAllThe command appends all texts of focused textarea of Chrome to Vim.
:Chrome2VimAppendSelectedThe command appends selected texts of focused textarea of Chrome to Vim.

Other documents

Qiita

License

MIT

添加新评论