Code Monkey home page Code Monkey logo

pyrepl.vim's Introduction

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 off. 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+

pyrepl.vim's People

Contributors

bogdanp avatar

Stargazers

Michael Kropat avatar Ian Channing avatar yang chanfa avatar 修昊 avatar Yongwen Zhuang avatar Kaung Htet avatar yuan avatar Jacky Alciné avatar Adam Howard avatar  avatar  avatar DigitalLexicon avatar  avatar Hannes Landstedt avatar Alexandre Gauthier avatar  avatar Jason Trill avatar hq1 avatar Zach Williams avatar t9md avatar Christopher Flynn avatar Beau Gunderson avatar Jeremy Cantrell avatar Rock Howard avatar Brian Luft avatar

Watchers

 avatar James Cloos avatar Vincent Vetsch avatar James Diamond avatar  avatar

Forkers

vincentvetsch

pyrepl.vim's Issues

Python error message on load a bit redundant

I use a single .vim dir across several machines, some of which have python and some of which do not. On the machines that don't, I get the "Error: PyREPL requires vim compiled with +python." error. This isn't really helpful as I won't be adding python to those copies of Vim any time soon (nor using them for Python development). It would be great if the plugin just exited when Python isn't present.

Unexpected output

This is what my buffer looks like after entering "x=1"

>>> x=1
>>> >>>

I'm using MacVim compiled with python 2.7.1

cannot re-edit blocks without indentation errors

Using your latest version from the repository, I cannot do something like:

  >>> def foo(): 
  ...     x=1 
  ...     return x 

and then go back in the buffer and do :

  >>> def foo(): 
  ...     x=1 
  ...     x=10  # adding additional line to previous block
  ...     return x 

without getting the following error:

  Traceback (most recent call last):
    File "<string>", line 1
      return x
     ^

Am I missing something?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.