ctrl-a --> Will increment a number under your cursor
ctrl-x --> Will decrement a number under your cursor
1,$ /^#/d --> Delete any lines starting with hash
%s/poop/crap/ --> Search and replace entire file
%s/poop/crap/g --> Search and replace greedily
%s/poop/crap/gc --> Search and replace greedily with confirmation
%s/poop/crap/gi --> Search and replace greedily with case insensitivity
*When opening multiple files use :n and :rew
No comments:
Post a Comment