diff --git a/vim/plugin/settings/vim-multiple-cursors.vim b/vim/plugin/settings/vim-multiple-cursors.vim new file mode 100644 index 0000000..fcd4049 --- /dev/null +++ b/vim/plugin/settings/vim-multiple-cursors.vim @@ -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='' + +" Ctrl-n, Ctrl-p, Ctrl-x, and 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='' +let g:multi_cursor_prev_key='' +let g:multi_cursor_skip_key='' +let g:multi_cursor_quit_key='' diff --git a/vim/plugin/settings/yadr-keymap.vim b/vim/plugin/settings/yadr-keymap.vim index e0a5043..6b8ba60 100644 --- a/vim/plugin/settings/yadr-keymap.vim +++ b/vim/plugin/settings/yadr-keymap.vim @@ -191,10 +191,6 @@ nmap ,vr :so % " Type ,hl to toggle highlighting on/off, and show current value. noremap ,hl :set hlsearch! hlsearch? -" Apple-* Highlight all occurrences of current word (like '*' but without moving) -" http://vim.wikia.com/wiki/Highlight_all_search_pattern_matches -nnoremap :let @/='\<=expand("")\>':set hls - " 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. It’s more useful in any case I can imagine, but it’s located way diff --git a/vim/vundles.vim b/vim/vundles.vim index 6019414..1d084d7 100644 --- a/vim/vundles.vim +++ b/vim/vundles.vim @@ -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"