Code Monkey home page Code Monkey logo

vim-run-interactive's Introduction

代码修改自https://github.com/christoomey/vim-run-interactive.git 方便window下运行定义快捷键

Run Interactive

Run Interactive is a Vim plugin for selectively running commands via an interactive shell. This allows you to take advantage of custom functions, aliases, etc that are configured via your login shell scripts.

Vim supports treating the shell as an interactive shell, but this has performance and maintenance concerns. This plugin allows for temporarily setting Vim to use an interactive shell, then returns to default non-interactive configuration after executing the specified command.

It provides a single command, RunInInteractiveShell, which allows you to run a command via an interactive shell. For instance, assume you have a a git alias called update defined in your ~/.gitconfig. By default you would not be able to run this command from within Vim, but with this plugin you can run it via:

:RunInInteractiveShell git update

Installation

Install with Vundle by adding the following line to your vimrc:

Bundle 'christoomey/vim-run-interactive'

And then run the :BundleInstall command from within Vim.

Usage

The main interface to the plugin is via the command, RunInInteractiveShell. This is obviously a bit of a mouthful, so a mapping like the following is recommended:

" Add this to your vimrc to provide a shortcut
nnoremap <leader>r :RunInInteractiveShell<space>

Assuming you are using , as you leader, then you can type ,r in normal mode and the command name will be populated for you along with a trailing space. You can then enter your desired shell command and hit enter to run it.

vim-run-interactive's People

Contributors

christoomey avatar whiter001 avatar

Watchers

 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.