Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save petergi/1b58a01ea62c59fecee1867f2915818b to your computer and use it in GitHub Desktop.
Save petergi/1b58a01ea62c59fecee1867f2915818b to your computer and use it in GitHub Desktop.

:1,10co20 "copy lines 1 through 10 after line 20"

:4,15t$ "copy lines 4 through 15 to end of document (t == co)"

:-t$ "copy previous line to end of document"

:m0 "move current line to line 0 (i.e. the top of document)"

:.,+3m$-1 "move current line +3 subsequent to the last line -1 (i.e. next to last)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment