From a88b6774cc3c84e634825daaefe417a1ecfb2ae6 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 11 Jul 2015 15:58:26 -0400 Subject: vimrc: Remove CopyModeToggle command Haven't used this command in ages because it doesn't really work well. These days I use my c visual mapping for copying text instead of copying it directly from the window. This command also doesn't handle copying from split windows. Pretty soon I should install Chris Toomey's text object copy plugin as that will be quite a bit nicer than my current system. --- vimrc | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 22680c1..83ca1b9 100644 --- a/vimrc +++ b/vimrc @@ -296,6 +296,10 @@ " * Remove bl mapping because I'm not using it and have developed " a preference for `:ls` instead. " +" 2015.07.11: +" * Remove CopyModeToggle command since I don't use it and it doesn't +" really work. +" " Pathogen @@ -613,26 +617,6 @@ nnoremap p :read !pbpaste command! -nargs=* Wrap set wrap linebreak nolist -" Remove line numbers and invisibles so that text can be selected for an OS copy -let b:copy_mode_enabled = 0 -let b:copy_mode_number = &l:number -let b:copy_mode_list = &l:list -function! CopyModeToggle() - if b:copy_mode_enabled - let &l:number = b:copy_mode_number - let &l:list = b:copy_mode_list - let b:copy_mode_enabled = 0 - else - let b:copy_mode_number = &l:number - let b:copy_mode_list = &l:list - set nonumber nolist - let b:copy_mode_enabled = 1 - endif -endfunction - -command! CopyModeToggle call CopyModeToggle() - - " Autocommands " ============ -- cgit v1.2.3