From 3c76f38c4af8ca159f1bd24c153558b1e7ae171d Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 15 Nov 2014 01:13:06 -0500 Subject: autoload/auditory.vim: Fix `d` not saving to register bug Previously my custom `d` and `dd` operators wouldn't save their deletions to the unnamed register. For normal custom operators this is exactly what you want, but not when you're making your own delete operator. When you notice this it becomes _extremely_ annoying. Fixing it here so now deleted text goes into the unnamed register. --- autoload/auditory.vim | 2 -- 1 file changed, 2 deletions(-) (limited to 'autoload') diff --git a/autoload/auditory.vim b/autoload/auditory.vim index 9b96c98..1c27485 100644 --- a/autoload/auditory.vim +++ b/autoload/auditory.vim @@ -181,7 +181,6 @@ vnoremap d :call Delete(visualmode(), 1) function! s:Delete(type, ...) let sel_save = &selection let &selection = "inclusive" - let reg_save = @@ call auditory#Play('/Resources/Normal_Mode/Delete.wav') @@ -196,7 +195,6 @@ function! s:Delete(type, ...) endif let &selection = sel_save - let @@ = reg_save endfunction function! s:DeleteLine(type) -- cgit v1.2.3