laughing-hipster/.atom/packages/vim-mode/docs/operators.md

1.5 KiB

Implemented Operators

  • Delete
    • vwd - works in visual mode
    • dw - with a motion
    • 3d2w - with repeating operator and motion
    • dd - linewise
    • d2d - repeated linewise
    • D - delete to the end of the line
    • X - delete the character before the cursor
  • Change
    • vwc - works in visual mode
    • cw - deletes the next word and switches to insert mode.
    • cc - linewise
    • c2c - repeated linewise
    • C - change to the end of the line
  • Yank
    • vwy - works in visual mode
    • yw - with a motion
    • yy - linewise
    • y2y - repeated linewise
    • "ayy - supports registers (only named a-h, pending more advanced atom keymap support)
    • Y - linewise
  • Indent/Outdent/Auto-indent
    • vw> - works in visual mode
    • >> - indent current line one level
    • << - outdent current line one level
    • == - auto-indents current line
  • Put
    • p - default register
    • P - pastes the default register before the current cursor.
    • "ap - supports registers (only named a-h, pending more advanced atom keymap support)
  • Join
    • J - joins the current line with the immediately following line.
  • Mark
    • m[a-z][A-Z] - marks the current cursor position