vim-scripts / cloudboard.vim Goto Github PK
View Code? Open in Web Editor NEWA cloud-based clipboard, copy text on a machine, paste it on another
Home Page: http://www.vim.org/scripts/script.php?script_id=4994
A cloud-based clipboard, copy text on a machine, paste it on another
Home Page: http://www.vim.org/scripts/script.php?script_id=4994
This is a mirror of http://www.vim.org/scripts/script.php?script_id=4994 # cloudboard.vim https://github.com/brookhong/cloudboard.vim 中文文档 https://brookhong.github.io/2014/09/27/cloudboard-cn.html A cloud-based clipboard, yank(copy) text into a numbered cloud register on a machine, put(paste) the text from the cloud register on another machine. It uses GITHUB's gist as the cloud service. # Usage 1. run command `:CBInit` to set up your own cloudboard. 2. visual select the text that you want to copy (otherwise all the current buffer), use command `:CBYank 0` to copy it into cloud register 0. https://raw.githubusercontent.com/brookhong/brookhong.github.io/master/assets/images/cbyank.gif 3. open vim on another machine, use command `:CBPut 0` to paste the text from cloud register 0. https://raw.githubusercontent.com/brookhong/brookhong.github.io/master/assets/images/cbput.gif ### Cloud Register The number starts from 0, you can use anyone you'd like, for example: :CBYank 5 :CBPut 5 `:CBList` to put the contents from all cloud registers into current buffer. #### Auto Clear of Cloud Registers When AutoClear is turned on for a cloud register, the content of the cloud register will be cleared automatically after its content is read by a `CBPut` action. `:CBAutoClear 2` to toggle on/off AutoClear of cloud register 2. ### Cloud Files Cloud files are named files stored in a GITHUB gist. :CBSave test.c to save selected range into a cloud file named test.c. :CBLoad test.c to load a cloud file test.c into current buffer. :CBRm test.c to delete a cloud file test.c. :CBListFiles to list all cloud files in the cloudboard gist. Loading cloud files requires two requests to GITHUB, thus cloud register is faster to be used as a clipboard across machines. Cloud files is better when the text is huge, especial in case of that you prefer to save them for long period. ### Recommended Mappings nnoremap <space>p :CBPut vnoremap <space>y :CBYank # Installation Your VIM must have python support, check it with `:python print 'hello'`. `Bundle 'brookhong/cloudboard.vim'` or Just unzip the zip file to your VIM file path, usually to be ~/.vim.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.