Skip to content

Multiple Cursors

NeoVintageous provides multiple cursor support in normal mode and visual mode. This feature allows you to work with multiple cursors simultaneously, making repetitive editing tasks more efficient.

Normal and Visual Mode Commands

CommandDescription
<C-n>, ghStart multiple cursor.
<C-n>, n, jAdd next match.
<C-x>, q, lSkip next match.
<C-p>, N, k, QRemove current match.
<M-n>, \\ASelect all matches.
<Esc>, J, <Tab>Quit and enter normal mode.
v, <Tab>Enter normal mode.
gHSelect all search occurrences (/, ?, *, #).

When you have entered multiple cursor mode, you use visual commands such as c, I, x, and y, all work without any issues.

You can also go to Normal mode by pressing v and use normal commands there.

At any time, you can press <Esc> to exit back to regular Vim. To change the behaviour of <Esc>, see the multi cursor exit from visual mode setting.

NOTE

Match case sensitivity is controlled by the Sublime Text find widget. Menu → Find → Find... OR Enter insert mode and press CTRL-f. Toggle the Case sensitive "Aa" button.

TIP

Leverage visual block mode to create vertical multiple cursors

  1. CTRL-v Enter visual block mode.
  2. 3j Extend visual block 3 lines down.
  3. CTRL-n Enter multiple cursor mode.

Settings

vintageous_enable_multiple_cursors

  • Type: boolean
  • Default: true

Enable multiple cursor plugin.

vintageous_multi_cursor_exit_from_visual_mode

  • Type: boolean
  • Default: false

When set to true, then pressing a quit key in visual mode will quit and delete all existing cursors, skipping normal mode with multiple cursors.

Status

StatusCommandDescription
<C-n>, ghStart multiple cursor.
<C-n>, n, jAdd next match.
<C-x>, n, q, lSkip next match.
<C-p>, N, Q, kRemove current match.
<M-n>, \\ASelect all matches.
<Esc>, J, <Tab>Quit or enter normal mode (default).
v, <Tab>Enter normal mode.
gHSelect all search occurrences (/, ?, *, #).

A (select all matches) is deprecated, use \\A instead.

Check out the roadmap for a detailed inventory of feature status.