Skip to content

Instantly share code, notes, and snippets.

@rstacruz
Last active August 26, 2016 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rstacruz/408b5e0011ee601fb20a8776c7eb6e99 to your computer and use it in GitHub Desktop.
Save rstacruz/408b5e0011ee601fb20a8776c7eb6e99 to your computer and use it in GitHub Desktop.

Text objects

vip - select IN paragraph
vap - select AROUND paragraph

also: ( [ ' " t

% - go to opening/closing ( or [ or <tag>

Pasting

p  - paste
]p - paste, match indentation
>p - paste, match indentation + 1 level

Back button

ctrl+o - back
ctrl+i - forward

Marking

m# - mark (ma)
'# - go to mark ('a)

Tig

  • brew install tig
  • sudo apt-get install tig
u - stage/unstage
1 - stage/unstage a line
! - revert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment