diff options
| author | Teddy Wing | 2015-07-11 15:58:26 -0400 | 
|---|---|---|
| committer | Teddy Wing | 2015-07-11 16:03:33 -0400 | 
| commit | a88b6774cc3c84e634825daaefe417a1ecfb2ae6 (patch) | |
| tree | 25a1a8006053875be9321dd77a2141caca55c17b | |
| parent | eb39ce9d925844cef4f28aee63973011ef8c6dfc (diff) | |
| download | dotvim-a88b6774cc3c84e634825daaefe417a1ecfb2ae6.tar.bz2 | |
vimrc: Remove CopyModeToggle command
Haven't used this command in ages because it doesn't really work well.
These days I use my <leader>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.
| -rw-r--r-- | vimrc | 24 | 
1 files changed, 4 insertions, 20 deletions
| @@ -296,6 +296,10 @@  "       * Remove <leader>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 <leader>p :read !pbpaste<cr>  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  " ============ | 
