Add the multicursor plugin

This commit is contained in:
Christian Treppo 2013-05-20 12:52:36 +02:00
parent 68b427bf7b
commit 9a1ee8877c
3 changed files with 13 additions and 4 deletions

View File

@ -0,0 +1,12 @@
" Turn off default key mappings
let g:multi_cursor_use_default_mapping=0
" Switch to multicursor mode with Apple-*
let g:multi_cursor_start_key='<D-*>'
" Ctrl-n, Ctrl-p, Ctrl-x, and <Esc> are mapped in the special multicursor
" mode once you've added at least one virtual cursor to the buffer
let g:multi_cursor_next_key='<C-n>'
let g:multi_cursor_prev_key='<C-p>'
let g:multi_cursor_skip_key='<C-x>'
let g:multi_cursor_quit_key='<Esc>'

View File

@ -191,10 +191,6 @@ nmap <silent> ,vr :so %<CR>
" Type ,hl to toggle highlighting on/off, and show current value.
noremap ,hl :set hlsearch! hlsearch?<CR>
" Apple-* Highlight all occurrences of current word (like '*' but without moving)
" http://vim.wikia.com/wiki/Highlight_all_search_pattern_matches
nnoremap <D-*> :let @/='\<<C-R>=expand("<cword>")<CR>\>'<CR>:set hls<CR>
" These are very similar keys. Typing 'a will jump to the line in the current
" file marked with ma. However, `a will jump to the line and column marked
" with ma. Its more useful in any case I can imagine, but its located way

View File

@ -71,6 +71,7 @@ Bundle "tpope/vim-bundler"
Bundle "vim-scripts/IndexedSearch"
Bundle "vim-scripts/camelcasemotion.git"
Bundle "vim-scripts/matchit.zip.git"
Bundle "terryma/vim-multiple-cursors"
" General vim improvements
Bundle "MarcWeber/vim-addon-mw-utils.git"