Skip to content

Commit 9d534c6

Browse files
committed
.
1 parent 1dd1e16 commit 9d534c6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

plugin/hlyanked.vim

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if !exists('g:hlyanked_hlgroup')
1919
endif
2020

2121
if !exists('g:hlyanked_timeout')
22-
g:hlyanked_timeout = 400
22+
g:hlyanked_timeout = 2000
2323
endif
2424

2525
# ----------------------------------------------------
@@ -68,3 +68,12 @@ augroup HighlightYanked
6868
| HighlightYanked()
6969
| endif
7070
augroup END
71+
72+
augroup KillHighlight
73+
autocmd!
74+
autocmd WinLeave * if timer_id != -1
75+
| timer_stop(timer_id)
76+
| timer_id = -1
77+
| RemoveHighlight(0)
78+
| endif
79+
augroup END

0 commit comments

Comments
 (0)