ghost-text-vim


Ⅰ. 插件描述

Ghost Text for VIm

Ⅱ. 基本信息

创建日期:  2016-03-23
使用用户:  4
Github星:  52
插件作者:  Fredrik Alstromer

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'falstro/ghost-text-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'falstro/ghost-text-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'falstro/ghost-text-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/falstro/ghost-text-vim

Ⅳ. 文档说明

# Ghost Text VIm

A small server script allowing you to use GVIm with Ghost Text Chrome
(or Firefox) extension. It's a standalone script, and will launch new
instances of GVIm each time. It's implemented in TCL because, reasons,
and requires TCL version at least 8.6. It also requires sha1, json, and
json::write. On Debian and Ubuntu these are available in the tcllib
package.

The integration from VIm to Chrome is fairly robust, and will update on
each change as soon as you get back to normal mode. In the other
direction is a bit more shaky, and will only work if VIm is in normal

  1. If you change the text in chrome while in insert mode in VIm,
    you'll get a bunch of crap buffer. This is due to the fact that we can

only replace content by sending keys to VIm (and TCL has issues passing
<ESC> to the remote commands) rather than using remote expressions.

Anyway, I wrote this for me, drop me a line if you have any issues and I
might invest some more time into making it more user friendly.

添加新评论