1
1
*yankring.txt* For Vim version 7.0.
2
2
3
- Author: David Fishburn February 5 , 2011
4
- Version: 13 .0
3
+ Author: David Fishburn April 1 , 2011
4
+ Version: 14 .0
5
5
6
6
For instructions on installing this file, type
7
7
:help add-local-help | add-local-help | inside Vim.
@@ -21,23 +21,23 @@ Homepage: http://vim.sourceforge.net/script.php?script_id=1234
21
21
3.4 Customizing Menus..................: | yankring-custom-menus |
22
22
4. Using the YankRing Window..............: | yankring-window |
23
23
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|
41
41
6. Tutorial...............................: | yankring-tutorial |
42
42
6.1 YRShow............................: | YRShow-example |
43
43
6.2 YRReplace.........................: | YRReplace-example |
@@ -540,7 +540,7 @@ convience you can map a key, <F11>, to this command: >
540
540
541
541
Status line~
542
542
The 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=?
544
544
<
545
545
Help=?, pressing [?] will toggle the display of available commands the
546
546
yankring window supports. Pressing [?] again will remove the additional
@@ -572,10 +572,11 @@ in the YankRing window.
572
572
<CR> Just like "p".
573
573
<Enter> Just like "p".
574
574
<2-LeftMouse> Just like "p". Normal mode only.
575
+ 1-9 Short cut to paste the n'th number from the YankRing.
575
576
d Removes the element from the yankring. In visual mode all
576
577
elements selected will be removed.
577
578
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.
579
580
s Prompts you for a regex to search the YankRing and display
580
581
only matching items.
581
582
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
597
598
to use.
598
599
599
600
600
- 5.1 YRToggle *YRToggle*
601
+ 5.1 YRToggle : *YRToggle*
601
602
Allows you to enable and disable the YankRing quickly. This
602
603
command will remove the default maps and recreate them.
603
604
@@ -607,12 +608,12 @@ to use.
607
608
:YRToggle 0 " Disables it
608
609
<
609
610
610
- 5.2 YRClear *YRClear*
611
+ 5.2 YRClear : *YRClear*
611
612
Clears all elements from the yankring.
612
613
See also | YRClear-example | .
613
614
614
615
615
- 5.3 YRShow *YRShow*
616
+ 5.3 YRShow : *YRShow*
616
617
Similar to | :register | , will display all the entries in the yankring.
617
618
The element at the top will be the next element pasted from the
618
619
yankring.
@@ -629,7 +630,7 @@ to use.
629
630
5 one^@
630
631
<
631
632
632
- 5.5 YRGetElem *YRGetElem*
633
+ 5.5 YRGetElem : *YRGetElem*
633
634
This command has two modes. If no parameters are provided, it
634
635
becomes interactive. It uses YRShow to display the list and
635
636
allows you to choose which element to paste. If a parameter
@@ -649,7 +650,7 @@ to use.
649
650
:YRGetElem 0 " Error, invalid choice is reported
650
651
651
652
652
- 5.6 YRGetMultiple *YRGetMultiple*
653
+ 5.6 YRGetMultiple : *YRGetMultiple*
653
654
Will paste many elements from the YankRing in one command.
654
655
If the number specified is 1 or less, it is assumed you want
655
656
just the current element pasted. If the number specified is
@@ -668,7 +669,7 @@ to use.
668
669
:YRGetMultiple 0 " Will paste element 1
669
670
670
671
671
- 5.7 YRPush *YRPush*
672
+ 5.7 YRPush : *YRPush*
672
673
Allows the user to "push" additional entries into the yankring.
673
674
If you yanked text via a key mapping which does not use the
674
675
YankRing (or there is text on the clipboard) you can use this
@@ -682,7 +683,7 @@ to use.
682
683
< See also | YRPush-example | .
683
684
684
685
685
- 5.8 YRPop *YRPop*
686
+ 5.8 YRPop : *YRPop*
686
687
Allows you to pop any elements from the yankring. If no parameters
687
688
are provided, the 1st element is removed from the yankring. The
688
689
command optionally takes a second parameter to specify how many
@@ -697,7 +698,7 @@ to use.
697
698
< See also | YRPop-example | .
698
699
699
700
700
- 5.9 YRYankCount *YRYankCount*
701
+ 5.9 YRYankCount : *YRYankCount*
701
702
This command has the most mappings created for it. If you are
702
703
in normal mode and you are not specifying a range, this command
703
704
will add the text to the yankring.
@@ -739,7 +740,7 @@ to use.
739
740
See also | yankring-tutorial | .
740
741
741
742
742
- 5.10 YRYankRange *YRYankRange*
743
+ 5.10 YRYankRange : *YRYankRange*
743
744
This command by default is only called in visual mode. All
744
745
visual modes (| characterwise-visual | , | linewise-visual | ,
745
746
| blockwise-visual | ) are supported. Any visually selected text
@@ -761,12 +762,12 @@ to use.
761
762
< See also | YRYankRange-example | .
762
763
763
764
764
- 5.11 YRDeleteRange *YRDeleteRange*
765
+ 5.11 YRDeleteRange : *YRDeleteRange*
765
766
This command is identical to YRYankRange, except the range is
766
767
also deleted.
767
768
768
769
769
- 5.12 YRPaste *YRPaste*
770
+ 5.12 YRPaste : *YRPaste*
770
771
This command will paste elements from the yankring. By default it has
771
772
been mapped to p and P to match Vim's native key strokes. The text
772
773
pasted is exactly what was yanked, including newline characters and
@@ -783,7 +784,7 @@ to use.
783
784
See also | yankring-tutorial | .
784
785
785
786
786
- 5.13 YRReplace *YRReplace*
787
+ 5.13 YRReplace : *YRReplace*
787
788
The purpose of the YankRing is to gain access to previously yanked
788
789
(or deleted) elements. This command will replace the previous
789
790
paste with a different entry from the yankring.
@@ -812,33 +813,33 @@ to use.
812
813
let g:yankring_replace_n_nkey = '<Char-174> '
813
814
endif
814
815
815
- 5.14 YRMapsCreate *YRMapsCreate*
816
+ 5.14 YRMapsCreate : *YRMapsCreate*
816
817
This public function is responsible for creating the maps which
817
818
enable the yankring. This function is called by the YRToggle
818
819
command.
819
820
820
821
821
- 5.15 YRMapsDelete *YRMapsDelete*
822
+ 5.15 YRMapsDelete : *YRMapsDelete*
822
823
This public function removes the YankRing maps and disables
823
824
the yankring. This function is called by the YRToggle command.
824
825
825
826
826
- 5.16 YRSearch *YRSearch*
827
+ 5.16 YRSearch : *YRSearch*
827
828
This command is similar to | YRGetElem | . The command takes
828
829
one parameter which is a regular expression. Similar to
829
830
YRGetElem, it will display all items in the YankRing that match
830
831
the regular expression. It is also interactive, and will
831
832
prompt you to enter which match you wish pasted.
832
833
See also | YRSearch-example | .
833
834
834
- 5.17 YRCheckClipboard *YRCheckClipboard*
835
+ 5.17 YRCheckClipboard : *YRCheckClipboard*
835
836
Normally the GUI Vims will automatically (via autocmds)
836
837
check for changes to the system clipboard and add any new
837
838
changes to the YankRing. Most console Vim's do not fire
838
839
the required autocmds. This command will perform the check
839
840
manually.
840
841
841
- 5.18 YRRunAfterMaps *YRRunAfterMaps*
842
+ 5.18 YRRunAfterMaps : *YRRunAfterMaps*
842
843
See the following section | yankring-custom-maps | .
843
844
844
845
@@ -1055,6 +1056,10 @@ mapping: >
1055
1056
Using the YankRing window can be much faster if you do not want to cycle
1056
1057
through the YankRing using <C-P> and <C-N> to find the element.
1057
1058
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
+
1058
1063
*multiple-items-example*
1059
1064
There are times when you need to move through a buffer capturing many
1060
1065
different lines (or snippets of code) and eventually want to switch
@@ -1215,6 +1220,24 @@ mapping: >
1215
1220
==============================================================================
1216
1221
7. History *yankring-history*
1217
1222
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
+
1218
1241
13.0: February 5, 2012
1219
1242
NF: [p, ]p, [P, ]P are now supported within the YankRing
1220
1243
window (Alexandre Provencio).
0 commit comments