DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Multiple Cursors in Vim


Use plugin vim-multiple-cursors.

Install this plugin with adding Plugin 'terryma/vim-multiple-cursors' into .vimrc.

The default key mappings is C-n for start multiple cursors and move to next, C-p for previous, C-x to skip, and for quit. For C-n conflicts with nerdtree, modify the nerdtree trigger to C-i:

nnoremap <C-i> :NERDTreeTabsToggle<CR>

Note:

Do not map 'next/previous' to C-j/k as follows:

" multiple cursors configs
let g:multi_cursor_next_key='<C-j>'
let g:multi_cursor_prev_key='<C-k>'

for C-j/k is mapped to keys jumping between windows.



Published

Oct 2, 2016

Last Updated

Oct 2, 2016

Category

Tech

Tags

  • cursor 1
  • multiple 1
  • plugin 16
  • vim 92

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor