Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 492 Bytes

File metadata and controls

21 lines (13 loc) · 492 Bytes

Vim:

Cheat Sheet:

This cheat sheet should be glued to your desk, toilet wall, inner eyelid, or anywhere you may possibly need to use vim.

Search and replace file path:

To replace all occurrences:

:%s,<search pattern>,<replace>,g
  • use , to delimit search range
  • use \ to escape special characters like ~

eg:

%s,/home/pete/public_html,load http://north1ws.anu.edu.au/\~pete,g