gui2term.py


Ⅰ. 插件描述

My python scripts started in winter.

Ⅱ. 基本信息

创建日期:  2009-09-06
使用用户:  1
Github星:  193
插件作者:  lilydjwg

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'lilydjwg/gui2term-py'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'lilydjwg/gui2term-py'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'lilydjwg/gui2term-py'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/lilydjwg/winterpy

Ⅳ. 文档说明

Requirement: python3 for 2.0+. However, it should not be hard to make it work under Python 2 if you are familiar with Python (you can try the 3to2 command).

Usage:
invoke it like this in commandline:
  ./gui2term.py sourcefile newfile
or
  python3 gui2term.py sourcefile newfile

Note:

  • It searches and processes lines in a vim colorscheme that seems like a normal highlight command, so it does not work with all the colorscheme.
  • Some GUI only colorschemes may use the default scheme if it found itself under a terminal. You need to manually remove these lines.
  • For some colors, the output is rather bad.

gui2term is part of winterpy on github: https://github.com/lilydjwg/winterpy/tree/master/pyexe/gui2term.py

添加新评论