From 7e63e40b3a47e3f77575ec0e96532855e394dfab Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 5 Nov 2018 19:57:28 -0500 Subject: switch to plugged for vim plugins --- .../plugin/multiple_cursors.vim | 89 ---------------------- 1 file changed, 89 deletions(-) delete mode 100644 .vim/bundle/vim-multiple-cursors/plugin/multiple_cursors.vim (limited to '.vim/bundle/vim-multiple-cursors/plugin') diff --git a/.vim/bundle/vim-multiple-cursors/plugin/multiple_cursors.vim b/.vim/bundle/vim-multiple-cursors/plugin/multiple_cursors.vim deleted file mode 100644 index 6595bc3..0000000 --- a/.vim/bundle/vim-multiple-cursors/plugin/multiple_cursors.vim +++ /dev/null @@ -1,89 +0,0 @@ -"=============================================================================== -" File: multiple_cursors.vim -" Author: Terry Ma -" Description: Emulate Sublime Text's multi selection feature -" Potential Features: -" - Create a blinking cursor effect? Good place to do it would be instead of -" waiting for user input, cycle through the highlight -" - Integrate with the status line? Maybe show a special multicursor mode? -" - Support mouse? Ctrl/Cmd click to set cursor? -"=============================================================================== -let s:save_cpo = &cpo -set cpo&vim - -function! s:init_settings(settings) - for [key, value] in items(a:settings) - let sub = '' - if type(value) == 0 - let sub = '%d' - elseif type(value) == 1 - let sub = '"%s"' - endif - let fmt = printf("let g:multi_cursor_%%s=get(g:, 'multi_cursor_%%s', %s)", - \ sub) - exec printf(fmt, key, key, value) - endfor -endfunction - -" Settings -let s:settings = { - \ 'exit_from_visual_mode': 1, - \ 'exit_from_insert_mode': 1, - \ 'use_default_mapping': 1, - \ 'debug_latency': 0, - \ } - -let s:settings_if_default = { - \ 'quit_key': '', - \ 'next_key': '', - \ 'prev_key': '', - \ 'skip_key': '', - \ } - -let s:default_insert_maps = {} -let s:default_normal_maps = {'!':1, '@':1, '=':1, 'q':1, 'r':1, 't':1, 'T':1, 'y':1, '[':1, ']':1, '\':1, 'd':1, 'f':1, 'F':1, 'g':1, '"':1, 'z':1, 'c':1, 'm':1, '<':1, '>':1} -let s:default_visual_maps = {'i':1, 'a':1, 'f':1, 'F':1, 't':1, 'T':1} - -let g:multi_cursor_insert_maps = - \ get(g:, 'multi_cursor_insert_maps', s:default_insert_maps) -let g:multi_cursor_normal_maps = - \ get(g:, 'multi_cursor_normal_maps', s:default_normal_maps) -let g:multi_cursor_visual_maps = - \ get(g:, 'multi_cursor_visual_maps', s:default_visual_maps) - -call s:init_settings(s:settings) - -if g:multi_cursor_use_default_mapping - call s:init_settings(s:settings_if_default) -endif - -if !exists('g:multi_cursor_start_word_key') - if exists('g:multi_cursor_start_key') - let g:multi_cursor_start_word_key = g:multi_cursor_start_key - elseif exists('g:multi_cursor_next_key') - let g:multi_cursor_start_word_key = g:multi_cursor_next_key - endif -endif - -" External mappings -if exists('g:multi_cursor_start_key') - exec 'nnoremap '.g:multi_cursor_start_key. - \' :call multiple_cursors#new("n", 0)' - exec 'xnoremap '.g:multi_cursor_start_key. - \' :call multiple_cursors#new("v", 0)' -endif - -if exists('g:multi_cursor_start_word_key') - exec 'nnoremap '.g:multi_cursor_start_word_key. - \' :call multiple_cursors#new("n", 1)' - " In Visual mode word boundary is not used - exec 'xnoremap '.g:multi_cursor_start_word_key. - \' :call multiple_cursors#new("v", 0)' -endif - -" Commands -command! -nargs=1 -range=% MultipleCursorsFind - \ call multiple_cursors#find(, , ) - -let &cpo = s:save_cpo -unlet s:save_cpo -- cgit v1.3.1