Code Monkey home page Code Monkey logo

vim-conque-repl's Introduction

Vim ConqueShell Repl

This plugin makes really easy sending input/reading output from REPLs through vim. It has similar goals to the slime.vim plugin but it doesn't need screen or tmux and works with gvim. Instead it it depends on the ConqueShell plugin, so vim must be compiled with python support

Installation

If you are using Vundle add this to your vimrc:

Bundle 'tarruda/vim-conque-shell'
Bundle 'tarruda/vim-conque-repl'

Or copy vim-conque-repl.vim to the plugins directory.

Usage

With the default configuration F5 and F6 are mapped respectively, but only if they are not mapped yet. The mappings can be customized by setting g:conque_repl_send_key and g:conque_repl_send_buffer_key in your vimrc.

The idea is that you have two buffers in split windows, one where you are editing commands, and another where conqueshell is running a repl for some language(python, ruby, node.js, coffeescript...) or any other process that accepts commands interactively. So in the default setup:

  • Hitting F5 in normal or insert mode will send the line under the cursor to the repl.

  • Hitting F5 in visual mode will send the selected text to the repl.

  • Hitting F6 in normal or insert mode will send the entire buffer to the repl.

Unlike the default ConqueShell commands for sending text, these leave the original buffers focused and with text selected(in case of running in visual mode), transforming vim into a nice multi line command editor with syntax highlighting/indentation.

This plugin works well with the scratch.vim plugin.

vim-conque-repl's People

Contributors

tarruda avatar

Watchers

Greg Rosenblatt avatar James Cloos avatar

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.