11*yankring.txt* For Vim version 7.0.
22
3- Author: David Fishburn February 5 , 2011
4- Version: 13 .0
3+ Author: David Fishburn April 1 , 2011
4+ Version: 14 .0
55
66For instructions on installing this file, type
77 :help add-local-help | add-local-help | inside Vim.
@@ -21,23 +21,23 @@ Homepage: http://vim.sourceforge.net/script.php?script_id=1234
2121 3.4 Customizing Menus..................: | yankring-custom-menus |
2222 4. Using the YankRing Window..............: | yankring-window |
2323 5. Commands...............................: | yankring-commands |
24- 5.1 YRToggle..........................: | YRToggle |
25- 5.2 YRClear...........................: | YRClear |
26- 5.3 YRShow............................: | YRShow |
27- 5.5 YRGetElem.........................: | YRGetElem |
28- 5.6 YRGetMultiple.....................: | YRGetMultiple |
29- 5.7 YRPush............................: | YRPush |
30- 5.8 YRPop.............................: | YRPop |
31- 5.9 YRYankCount.......................: | YRYankCount |
32- 5.10 YRYankRange.......................: | YRYankRange |
33- 5.11 YRDeleteRange.....................: | YRDeleteRange |
34- 5.12 YRPaste...........................: | YRPaste |
35- 5.13 YRReplace.........................: | YRReplace |
36- 5.14 YRMapsCreate......................: | YRMapsCreate |
37- 5.15 YRMapsDelete......................: | YRMapsDelete |
38- 5.16 YRSearch..........................: | YRSearch |
39- 5.17 YRCheckClipboard..................: | YRCheckClipboard |
40- 5.18 YRRunAfterMaps....................: | YRRunAfterMaps |
24+ 5.1 YRToggle..........................: | : YRToggle|
25+ 5.2 YRClear...........................: | : YRClear|
26+ 5.3 YRShow............................: | : YRShow|
27+ 5.5 YRGetElem.........................: | : YRGetElem|
28+ 5.6 YRGetMultiple.....................: | : YRGetMultiple|
29+ 5.7 YRPush............................: | : YRPush|
30+ 5.8 YRPop.............................: | : YRPop|
31+ 5.9 YRYankCount.......................: | : YRYankCount|
32+ 5.10 YRYankRange.......................: | : YRYankRange|
33+ 5.11 YRDeleteRange.....................: | : YRDeleteRange|
34+ 5.12 YRPaste...........................: | : YRPaste|
35+ 5.13 YRReplace.........................: | : YRReplace|
36+ 5.14 YRMapsCreate......................: | : YRMapsCreate|
37+ 5.15 YRMapsDelete......................: | : YRMapsDelete|
38+ 5.16 YRSearch..........................: | : YRSearch|
39+ 5.17 YRCheckClipboard..................: | : YRCheckClipboard|
40+ 5.18 YRRunAfterMaps....................: | : YRRunAfterMaps|
4141 6. Tutorial...............................: | yankring-tutorial |
4242 6.1 YRShow............................: | YRShow-example |
4343 6.2 YRReplace.........................: | YRReplace-example |
@@ -540,7 +540,7 @@ convience you can map a key, <F11>, to this command: >
540540
541541Status line~
542542The first line in the YankRing window is the status line. >
543- AutoClose=1;ClipboardMonitor=1;Cmds:p,P ,d,r,s,a,c,u,q,<enter>,<space>;Help=?
543+ AutoClose=1;ClipboardMonitor=1;Cmds:[g]p,[g]P,1-9 ,d,r,s,a,c,u,q,<enter>,<space>;Help=?
544544<
545545Help=?, pressing [?] will toggle the display of available commands the
546546yankring window supports. Pressing [?] again will remove the additional
@@ -572,10 +572,11 @@ in the YankRing window.
572572 <CR> Just like "p".
573573 <Enter> Just like "p".
574574 <2-LeftMouse> Just like "p". Normal mode only.
575+ 1-9 Short cut to paste the n'th number from the YankRing.
575576 d Removes the element from the yankring. In visual mode all
576577 elements selected will be removed.
577578 r Just like "p", but in visual mode if many lines are selected
578- it will paste these in reverse order.
579+ it will paste these items in reverse order.
579580 s Prompts you for a regex to search the YankRing and display
580581 only matching items.
581582 a Toggles the g:yankring_window_auto_close setting.
@@ -597,7 +598,7 @@ through maps against a buffer, instead of commands. This makes it much easier
597598to use.
598599
599600
600- 5.1 YRToggle *YRToggle*
601+ 5.1 YRToggle : *YRToggle*
601602 Allows you to enable and disable the YankRing quickly. This
602603 command will remove the default maps and recreate them.
603604
@@ -607,12 +608,12 @@ to use.
607608 :YRToggle 0 " Disables it
608609<
609610
610- 5.2 YRClear *YRClear*
611+ 5.2 YRClear : *YRClear*
611612 Clears all elements from the yankring.
612613 See also | YRClear-example | .
613614
614615
615- 5.3 YRShow *YRShow*
616+ 5.3 YRShow : *YRShow*
616617 Similar to | :register | , will display all the entries in the yankring.
617618 The element at the top will be the next element pasted from the
618619 yankring.
@@ -629,7 +630,7 @@ to use.
629630 5 one^@
630631<
631632
632- 5.5 YRGetElem *YRGetElem*
633+ 5.5 YRGetElem : *YRGetElem*
633634 This command has two modes. If no parameters are provided, it
634635 becomes interactive. It uses YRShow to display the list and
635636 allows you to choose which element to paste. If a parameter
@@ -649,7 +650,7 @@ to use.
649650 :YRGetElem 0 " Error, invalid choice is reported
650651
651652
652- 5.6 YRGetMultiple *YRGetMultiple*
653+ 5.6 YRGetMultiple : *YRGetMultiple*
653654 Will paste many elements from the YankRing in one command.
654655 If the number specified is 1 or less, it is assumed you want
655656 just the current element pasted. If the number specified is
@@ -668,7 +669,7 @@ to use.
668669 :YRGetMultiple 0 " Will paste element 1
669670
670671
671- 5.7 YRPush *YRPush*
672+ 5.7 YRPush : *YRPush*
672673 Allows the user to "push" additional entries into the yankring.
673674 If you yanked text via a key mapping which does not use the
674675 YankRing (or there is text on the clipboard) you can use this
@@ -682,7 +683,7 @@ to use.
682683< See also | YRPush-example | .
683684
684685
685- 5.8 YRPop *YRPop*
686+ 5.8 YRPop : *YRPop*
686687 Allows you to pop any elements from the yankring. If no parameters
687688 are provided, the 1st element is removed from the yankring. The
688689 command optionally takes a second parameter to specify how many
@@ -697,7 +698,7 @@ to use.
697698< See also | YRPop-example | .
698699
699700
700- 5.9 YRYankCount *YRYankCount*
701+ 5.9 YRYankCount : *YRYankCount*
701702 This command has the most mappings created for it. If you are
702703 in normal mode and you are not specifying a range, this command
703704 will add the text to the yankring.
@@ -739,7 +740,7 @@ to use.
739740 See also | yankring-tutorial | .
740741
741742
742- 5.10 YRYankRange *YRYankRange*
743+ 5.10 YRYankRange : *YRYankRange*
743744 This command by default is only called in visual mode. All
744745 visual modes (| characterwise-visual | , | linewise-visual | ,
745746 | blockwise-visual | ) are supported. Any visually selected text
@@ -761,12 +762,12 @@ to use.
761762< See also | YRYankRange-example | .
762763
763764
764- 5.11 YRDeleteRange *YRDeleteRange*
765+ 5.11 YRDeleteRange : *YRDeleteRange*
765766 This command is identical to YRYankRange, except the range is
766767 also deleted.
767768
768769
769- 5.12 YRPaste *YRPaste*
770+ 5.12 YRPaste : *YRPaste*
770771 This command will paste elements from the yankring. By default it has
771772 been mapped to p and P to match Vim's native key strokes. The text
772773 pasted is exactly what was yanked, including newline characters and
@@ -783,7 +784,7 @@ to use.
783784 See also | yankring-tutorial | .
784785
785786
786- 5.13 YRReplace *YRReplace*
787+ 5.13 YRReplace : *YRReplace*
787788 The purpose of the YankRing is to gain access to previously yanked
788789 (or deleted) elements. This command will replace the previous
789790 paste with a different entry from the yankring.
@@ -812,33 +813,33 @@ to use.
812813 let g:yankring_replace_n_nkey = '<Char-174> '
813814 endif
814815
815- 5.14 YRMapsCreate *YRMapsCreate*
816+ 5.14 YRMapsCreate : *YRMapsCreate*
816817 This public function is responsible for creating the maps which
817818 enable the yankring. This function is called by the YRToggle
818819 command.
819820
820821
821- 5.15 YRMapsDelete *YRMapsDelete*
822+ 5.15 YRMapsDelete : *YRMapsDelete*
822823 This public function removes the YankRing maps and disables
823824 the yankring. This function is called by the YRToggle command.
824825
825826
826- 5.16 YRSearch *YRSearch*
827+ 5.16 YRSearch : *YRSearch*
827828 This command is similar to | YRGetElem | . The command takes
828829 one parameter which is a regular expression. Similar to
829830 YRGetElem, it will display all items in the YankRing that match
830831 the regular expression. It is also interactive, and will
831832 prompt you to enter which match you wish pasted.
832833 See also | YRSearch-example | .
833834
834- 5.17 YRCheckClipboard *YRCheckClipboard*
835+ 5.17 YRCheckClipboard : *YRCheckClipboard*
835836 Normally the GUI Vims will automatically (via autocmds)
836837 check for changes to the system clipboard and add any new
837838 changes to the YankRing. Most console Vim's do not fire
838839 the required autocmds. This command will perform the check
839840 manually.
840841
841- 5.18 YRRunAfterMaps *YRRunAfterMaps*
842+ 5.18 YRRunAfterMaps : *YRRunAfterMaps*
842843 See the following section | yankring-custom-maps | .
843844
844845
@@ -1055,6 +1056,10 @@ mapping: >
10551056 Using the YankRing window can be much faster if you do not want to cycle
10561057 through the YankRing using <C-P> and <C-N> to find the element.
10571058
1059+ As a short cut, when using the YankRing window, you can press the numbers
1060+ 1-9 to paste that item directly and close the YankRing window. This can
1061+ be faster than navigating to the correct line number and pressing 'p'.
1062+
10581063 *multiple-items-example*
10591064 There are times when you need to move through a buffer capturing many
10601065 different lines (or snippets of code) and eventually want to switch
@@ -1215,6 +1220,24 @@ mapping: >
12151220==============================================================================
121612217. History *yankring-history*
12171222
1223+ 14.0: April 1, 2012
1224+ NF: The YankRing window supports 1-9 to choose to paste those
1225+ items for quicker access to the top 9 items.
1226+ NF: The YankRing now maps the @ key to run macros. Not all actions
1227+ performed during the macro are recorded by the YankRing
1228+ as a number of items had to be unmapped to support the replay
1229+ of actions which can prompt the user for input (i.e. t and f)
1230+ (Asis Hallab).
1231+ BF: When flipping between applications the system clipboard
1232+ was not added to the YankRing in all cases.
1233+ BF: The YankRing could report E121: Undefined variable:
1234+ g:yankring_manual_clipboard_check (Thilo Six).
1235+ BF: The YankRing could report: E132: Function call depth is higher
1236+ than 'maxfuncdepth' . When executing a YRClear or YRPop or
1237+ when flipping between applications (Marcin Szamotulski).
1238+ BF: Strange behaviour when opening the YankRing with
1239+ :e [YankRing] instead of :YRShow (Marcin Szamotulski).
1240+
12181241 13.0: February 5, 2012
12191242 NF: [p, ]p, [P, ]P are now supported within the YankRing
12201243 window (Alexandre Provencio).
0 commit comments