Skip to content

Commit da630d8

Browse files
dfishburnvim-scripts
authored andcommitted
Version 2.1
NF: Much improved usability, the yankring now has a "GUI" to service the yankring. If YRShow or YRSearch is used, a split buffer is opened which displays all the elements in the yankring. There are a number of maps that allow you to interact with the contents. The window can be positioned vertically or horizontally as well as being sized all through options specified in your vimrc. NF: Added the ability for the yankring to override Vim's numbered registers. Instead of the numbered registers holding the last yanked value, and the 9 previous deletes, they will now reflect the top 10 items in the yankring. This allows you to reference them directly with "5p. NF: YRPop can now delete any items from the yankring, rather that just from the top. NF: YRSetTop has been removed, it is no longer required as the internal representation of the yankring has changed. BF: If g:yankring_ignore_duplicate is set (which is the default) you could get some unpredicable results when moving backwards and forwards (<C-P> and <C-N>) through the previous values.
1 parent 2d0ebbc commit da630d8

File tree

2 files changed

+196
-73
lines changed

2 files changed

+196
-73
lines changed

doc/yankring.txt

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,10 @@ your |.vimrc|.
9696
Used to parse yankring_n_keys. >
9797
let g:yankring_separator = ','
9898
yankring_max_display
99-
< Default: 0
100-
When the YRShow command is issued, it will truncate the elements
101-
in the yankring to the fit the size of the Vim window, so that
102-
a single element does not display over multiple lines. The default
103-
value is 500. >
99+
< Default: 500
100+
When the yankring window is opened, each element is displayed on a
101+
separate line. Since each yank could be very large, the display of
102+
the element is limited to the above default. >
104103
let g:yankring_max_display = 70
105104
yankring_dot_repeat_yank
106105
< Default: Based on the Vim cpoption setting
@@ -188,6 +187,17 @@ your |.vimrc|.
188187
increase the size of the window by this number of columns. Pressing
189188
[<space>] again will toggle it back to the original size. >
190189
let g:yankring_window_increment = 50
190+
yankring_manage_numbered_reg
191+
< Default: 0
192+
Vim already maintains a list of numbered registers containing the last
193+
yanked item and the previous 9 deletes. These items can be referenced
194+
using [register]p, so "0p will paste the last yank, "1p will paste the
195+
last delete, "2p the 2nd last delete. For more information see
196+
|quote_number|.
197+
If you wish the yankring to maintain these numbered registers so
198+
the top 10 elements in the yankring are in the numbered reqisters 0-9
199+
you can put the following in your |vimrc| >
200+
let g:yankring_manage_numbered_reg = 1
191201
192202
<
193203
3.2 Default Keys *yankring-mappings*
@@ -939,12 +949,21 @@ mapping: >
939949
==============================================================================
940950
7. History *yankring-history*
941951

952+
2.1: October 11, 2005:
953+
NF: Added the ability for the yankring to override Vim's numbered
954+
registers. Instead of the numbered registers holding the last
955+
yanked value, and the 9 previous deletes, they will now reflect
956+
the top 10 items in the yankring. This allows you to reference
957+
them directly with "5p.
958+
942959
2.0: August 20, 2005:
943-
NF: Added a "GUI" to service the yankring. If YRShow or YRSearch
944-
is used, a split buffer is opened which displays all the
945-
elements in the yankring. There are a number of maps
946-
that allow you to interact with the contents. The window can be
947-
positioned vertically or horizontally.
960+
NF: Much improved usability, the yankring now has a "GUI" to service
961+
the yankring. If YRShow or YRSearch is used, a split buffer is
962+
opened which displays all the elements in the yankring. There
963+
are a number of maps that allow you to interact with the
964+
contents. The window can be positioned vertically or
965+
horizontally as well as being sized all through options
966+
specified in your vimrc.
948967
NF: YRPop can now delete any items from the yankring, rather
949968
that just from the top.
950969
NF: YRSetTop has been removed, it is no longer required as the

0 commit comments

Comments
 (0)