Giter VIP home page Giter VIP logo

vim-anywhere's Introduction

Deprecated. Check out vimclip instead.

vim-anywhere

Edit text in Vim, Neovim, or Gvim and have it copied to the clipboard when the buffer is closed to be pasted into an application.

Files are temporarily saved in /tmp/vim-anywhere if you need to go back to them.

Installation

Manual

Requires xclip, which should be installed from your distro's package manager.

Then run the following:

curl -LO https://raw.githubusercontent.com/cjbassi/vim-anywhere/master/vim-anywhere
chmod +x vim-anywhere

Then copy vim-anywhere into your $PATH.

Arch Linux

Install vim-anywhere-git from the AUR.

Usage

Run the script and give vim, nvim, or gvim and your default terminal if you're using Vim or Neovim.

Example:

vim-anywhere nvim alacritty

or

vim-anywhere gvim

It's recommended to bind the command to a keybind for convenience.

vim-anywhere's People

Contributors

cjbassi avatar kamaradclimber avatar mogenson avatar

Stargazers

 avatar Dean Zhang avatar Carlos E. Salazar avatar

Watchers

James Cloos avatar  avatar  avatar

vim-anywhere's Issues

Add compatibility for mate-terminal and gnome-terminal

If a mate-terminal or gnome-terminal instance is already running a new terminal will join that session and not block the bash script. The vim-anywhere script will copy the contents of the newly created empty file and exit. For mate-terminal and older versions of gnome-terminal this can be prevented by using the --disable-factory option like so:

$ vim-anywhere vim "mate-terminal --disable-factory"

Newer versions of gnome-terminal drop support for the --disable-factory option and require a more advanced method for monitoring when the temporary file has been written and closed.

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.