Skip to content

Commit d09900b

Browse files
dfishburnvim-scripts
authored andcommitted
Version 2.2
BF: If you pressed '?' to toggle the display of the help in the yankring window, the yankring window would close. This also applied to 'a', which allowed you to toggle the autoclose feature.
1 parent da630d8 commit d09900b

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

doc/yankring.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
*yankring.txt* For Vim version 6.2 and 7.0.
22

3-
Author: David Fishburn August 20, 2005
4-
Version: 2.0
3+
Author: David Fishburn October 19, 2005
4+
Version: 2.2
55

66
For instructions on installing this file, type
77
:help add-local-help |add-local-help| inside Vim.
@@ -949,6 +949,11 @@ mapping: >
949949
==============================================================================
950950
7. History *yankring-history*
951951

952+
2.2: October 19, 2005:
953+
BF: If you pressed '?' to toggle the display of the help in the
954+
yankring window, the window would close. This also applied to
955+
'a', which allowed you to toggle the autoclose feature.
956+
952957
2.1: October 11, 2005:
953958
NF: Added the ability for the yankring to override Vim's numbered
954959
registers. Instead of the numbered registers holding the last

plugin/yankring.vim

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
" yankring.vim - Yank / Delete Ring for Vim
22
" ---------------------------------------------------------------
3-
" Version: 2.1
3+
" Version: 2.2
44
" Authors: David Fishburn <[email protected]>
5-
" Last Modified: Tue Oct 11 2005 9:42:48 PM
5+
" Last Modified: Wed Oct 12 2005 11:54:41 AM
66
" Script: http://www.vim.org/scripts/script.php?script_id=1234
77
" Based On: Mocked up version by Yegappan Lakshmanan
88
" http://groups.yahoo.com/group/vim/post?act=reply&messageNum=34406
@@ -18,7 +18,7 @@ if v:version < 602
1818
finish
1919
endif
2020

21-
let loaded_yankring = 21
21+
let loaded_yankring = 22
2222

2323
" Allow the user to override the # of yanks/deletes recorded
2424
if !exists('g:yankring_max_history')
@@ -1572,10 +1572,10 @@ function! s:YRWindowOpen(results)
15721572
nnoremap <buffer> <silent> d :call <SID>YRWindowActionN('d','n')<CR>
15731573
vnoremap <buffer> <silent> d :call <SID>YRWindowAction('d','v')<CR>
15741574
vnoremap <buffer> <silent> r :call <SID>YRWindowAction('r','v')<CR>
1575-
nnoremap <buffer> <silent> a :call <SID>YRWindowActionN('a','n')<CR>
1576-
nnoremap <buffer> <silent> ? :call <SID>YRWindowActionN('?','n')<CR>
1575+
nnoremap <buffer> <silent> a :call <SID>YRWindowAction('a','n')<CR>
1576+
nnoremap <buffer> <silent> ? :call <SID>YRWindowAction('?','n')<CR>
15771577
nnoremap <buffer> <silent> u :call <SID>YRShow(0)<CR>
1578-
nnoremap <buffer> <silent> q :call <SID>YRWindowActionN('q','n')<CR>
1578+
nnoremap <buffer> <silent> q :call <SID>YRWindowAction('q','n')<CR>
15791579
nnoremap <buffer> <silent> <space> \|:silent exec 'vertical resize '.
15801580
\ (
15811581
\ g:yankring_window_use_horiz!=1 && winwidth('.') > g:yankring_window_width

0 commit comments

Comments
 (0)