About: Copy and paste between Vim instances   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

So, copy & paste between session, usually used Window's clipboard. but, to copy longer than one screen, It's really hard. yes, there are auto-indenting problem too. And sometimes, I just want copy function definition or long variable names. between vim buffers I simply use visual selection. or cw/ciw. in this case, yanking by line is worse than clipboard. Last night I made this script saving current register to file supporting visual selection too. * ,y saves current unnamed buffer to ~/reg.txt file. * ,p / ,P read from ~/reg.txt and paste using p/P. In visual mode, ,y is yank and save.

AttributesValues
rdfs:label
  • Copy and paste between Vim instances
rdfs:comment
  • So, copy & paste between session, usually used Window's clipboard. but, to copy longer than one screen, It's really hard. yes, there are auto-indenting problem too. And sometimes, I just want copy function definition or long variable names. between vim buffers I simply use visual selection. or cw/ciw. in this case, yanking by line is worse than clipboard. Last night I made this script saving current register to file supporting visual selection too. * ,y saves current unnamed buffer to ~/reg.txt file. * ,p / ,P read from ~/reg.txt and paste using p/P. In visual mode, ,y is yank and save.
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 828(xsd:integer)
Category
  • Usage
Author
  • Shin Seung Woo
Complexity
  • basic
Created
  • 2004(xsd:integer)
ID
  • 829(xsd:integer)
NEXT
  • 830(xsd:integer)
Rating
  • 13(xsd:integer)
abstract
  • So, copy & paste between session, usually used Window's clipboard. but, to copy longer than one screen, It's really hard. yes, there are auto-indenting problem too. And sometimes, I just want copy function definition or long variable names. between vim buffers I simply use visual selection. or cw/ciw. in this case, yanking by line is worse than clipboard. Last night I made this script saving current register to file supporting visual selection too. * ,y saves current unnamed buffer to ~/reg.txt file. * ,p / ,P read from ~/reg.txt and paste using p/P. In visual mode, ,y is yank and save. vmap ,y y:new:call setline(1,getregtype())oP:wq! ~/reg.txt nmap ,y :new:call setline(1,getregtype())oP:wq! ~/reg.txt map ,p :sview ~/reg.txt"zdddG:q!:call setreg('"', @", @z)p map ,P :sview ~/reg.txt"zdddG:q!:call setreg('"', @", @z)P
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software