User Tools

Site Tools


vim:cheatsheet:editing

VIM - Cheatsheet - Editing

    r - replace a single character

    J - join line below to the current one with one space in between
    gJ - join line below to the current one without space in between

    gwip - reflow paragraph

    g~ - switch case up to motion
    gu - change to lowercase up to motion
    gU - change to uppercase up to motion

    cc - change (replace) entire line
    C - change (replace) to the end of the line
    c$ - change (replace) to the end of the line
    ciw - change (replace) entire word
    cw - change (replace) to the end of the word

    s - delete character and substitute text
    S - delete line and substitute text (same as cc)

    xp - transpose two letters (delete and paste)

    u - undo
    U - restore (undo) last changed line
    Ctrl + r - redo

    . - repeat last command
vim/cheatsheet/editing.txt · Last modified: 2021/02/16 09:28 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki