About: Comfortable handling of registers   Sponge Permalink

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

To easily swap between different registers it is convenient to map a key to move the registers in a "circular list". The following mapping illustrates the idea: :nnoremap s :let @x=@" \| let @"=@a \| let @a=@b \| let @b=@x Now you can cycle between the registers "", "a, "b by pressing \s (assuming the default backslash for the leader key). * :let @a=@b copies register "b to register "a. * | separates Ex commands; \ escapes the pipe for the map command. This is also useful if you want to copy between the xclipboard and the unnamed standard register of Vim:

AttributesValues
rdfs:label
  • Comfortable handling of registers
rdfs:comment
  • To easily swap between different registers it is convenient to map a key to move the registers in a "circular list". The following mapping illustrates the idea: :nnoremap s :let @x=@" \| let @"=@a \| let @a=@b \| let @b=@x Now you can cycle between the registers "", "a, "b by pressing \s (assuming the default backslash for the leader key). * :let @a=@b copies register "b to register "a. * | separates Ex commands; \ escapes the pipe for the map command. This is also useful if you want to copy between the xclipboard and the unnamed standard register of Vim:
Version
  • 7(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1561(xsd:integer)
Category
  • Registers
Author
Subpage
  • /200804
Complexity
  • basic
Created
  • 2008(xsd:integer)
ID
  • 1562(xsd:integer)
NEXT
  • 1563(xsd:integer)
abstract
  • To easily swap between different registers it is convenient to map a key to move the registers in a "circular list". The following mapping illustrates the idea: :nnoremap s :let @x=@" \| let @"=@a \| let @a=@b \| let @b=@x Now you can cycle between the registers "", "a, "b by pressing \s (assuming the default backslash for the leader key). * :let @a=@b copies register "b to register "a. * | separates Ex commands; \ escapes the pipe for the map command. This is also useful if you want to copy between the xclipboard and the unnamed standard register of Vim: :nnoremap s :let @a=@" \| let @"=@+ \| let @+=@a Another usage can be found in cycling through the cut/copy history, i.e. cycling through the numbered registers. To see what it's changing, you could modify the command like this: :nnoremap s :let @x=@" \| let @"=@a \| let @a=@b \| let @b=@x \| reg "ab
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