PyREPL.vim


Ⅰ. 插件描述

VIM plugin that provides a way to run a Python REPL inside a VIM buffer.

Ⅱ. 基本信息

创建日期:  2011-03-02
使用用户:  5
Github星:  25
插件作者:  Bogdan Popa

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# PyREPL

VIM plugin that allows you to run a Python REPL inside a VIM buffer.

Preview

Screenshot:

Version 0.2.1

Videos.

Installation

Use pathogen and clone this
repository into your ~/.vim/bundle directory or copy the plugin
folder to ~/.vim and you're set.

Usage

Inside any buffer use :PyREPLToggle or \r to toggle the REPL on or

  1. Toggling it on will create a new empty buffer every single time.
    Toggling the REPL off will not close the buffer.

If you're working on a Python file and would like to evaluate it inside
the REPL you can run :PyREPLEvalFile on the buffer in which that file
is open.

Requirements

  • VIM 7.0+ compiled with +python
  • Python 2.6+

添加新评论