vim-visual-multi Documentation

repository·master·Indexed 26 days ago

https://github.com/mg979/vim-visual-multi

A Vim plugin that enables multi-cursor editing for simultaneous edits across multiple locations. Features include word selection via Ctrl-N, vertical cursor creation, and the ability to toggle between cursor and extend modes.

Tokens
342
Snippets
0
Records
5
Agent score
39%

What's inside vim-visual-multi

  1. Switch between Cursor and Extend modes

    master

    The plugin operates in two main modes:

    1. Cursor mode: Commands work as they would in standard Vim Normal mode.
    2. Extend mode: Commands work as they would in standard Vim Visual mode.

    Use Tab to toggle between cursor mode and extend mode.

  2. Basic usage of vim-visual-multi

    master

    vim-visual-multi provides multi-cursor editing capabilities primarily from Normal mode. Use the following mappings for common tasks:

    • Select words: Ctrl-N (similar to Ctrl-d in VS Code).
    • Vertical cursors: Ctrl-Down or Ctrl-Up to create cursors vertically.
    • Character selection: Shift-Arrows to select one character at a time.
    • Navigate occurrences: n for next occurrence, N for previous occurrence.
    • Navigate cursors: [ for previous cursor, ] for next cursor.
    • Skip/Remove cursors: q to skip the current occurrence, Q to remove the current cursor/selection.
    • Enter Insert mode: i, a, I, or A to start editing at the cursors.