Ian Jones Logo

Vim

Copy to clipboard

  • copy selected part: visually select text(type v or V in normal mode) and type :w !pbcopy

  • copy the whole file :%w !pbcopy

  • paste from the clipboard :r !pbpaste

Sneak

Documentation URL

Sneak is a vim plugin to help navigating text. Kicks of in input mode by typing s then 2 characters.

You can use ; to navigate to the next occurrence of the search.

You can use , to navigate bac

Search and Replace

You can use :s/term/new-term to search and replace a term on a line.

Global Search and Replace

You can use :%s/term/new-term to search an replace in the whole file.

Options

You can add /c at the end of your search and replace to "confirm" each replacement