Giter VIP home page Giter VIP logo

vim-copycat's Introduction

Introduction

vim-copycat provides much simpler way to share clipboard between terminal and system

Requirement

  1. copycat-clipboard
  2. Python 2.7

Command

  1. virtual mode type <C-c>c copy into system clipboard or copycat reg 0
  2. insert mode type <C-c>p paste with system clipboard or copycat reg 0
  3. virtual mode type <C-c>C like <C-c>c but copy into set reg
  4. insert mode type <C-c>P like <C-c>p but paste from reg
  5. normal mode type <C-c>l show copycat data
  6. normal mode type <C-c>d type reg name then remove copycat reg

Installation

  1. sudo apt-get install python-pip
  2. sudo pip install copycat-clipboard
  3. cd ~/.vim/bundles
  4. git clone [email protected]:georgefs/vim-copycat.git

then you're all set, from now you're able to use system clipboard as in Vim.

Available Settings

You could set the following settings in your ~/.vimrc:

g:copycat#reg

default register in Vim

g:copycat#clip

clipboard which will be used by copycat-clipboard, default is empty, which means the system clipboard.

g:copycat#overwrite_ctrlkeys

Ctrl-c, Ctrl-v style hotkey bindings

g:copycat#auto_sync

do or do not sync with copycat

vim-copycat's People

Contributors

georgefs avatar littleq0903 avatar

Stargazers

Stéphane P avatar  avatar Ivan avatar Edward Reed II avatar Jonathan Barratt avatar  avatar  avatar Timothy Lee avatar  avatar Chu-Siang Lai avatar David Chen avatar  avatar

Watchers

Carl X. Su avatar  avatar  avatar James Cloos avatar

Forkers

marlboromoo iwdmb

vim-copycat's Issues

implement g:copycat#overwrite_ctrlkeys

this one setting defined whether the plugin should overwrite the and map by default.

So, if g:copycat#overwrite_ctrlkeys = 1

the two key combinations will be overwritten.

otherwise g#copycat#overwrite_ctrlkeys = 0 (default), it won't be.

vundle issue

desktop: Ubuntu 16.04 Gnome
python version: 2.7.12

2017-05-09 12-36-08

No autocmd event for copy & paste

damn!

need to figure out a way to do this one, maybe we could detect the behavior of cursor and the register 0's content to judge whether user did copy/paste.

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.