Skip to content

Instantly share code, notes, and snippets.

@mapcloud
Last active February 18, 2018 10:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mapcloud/d6263b200ee3775c216a8f47ace27445 to your computer and use it in GitHub Desktop.
vim time savers

VIM

:%norm A*

Description

%       = for every line
norm    = type the following commands
A*      = Append `*` the end of current line

Shift + V Block mode Shift + I Insert during block mode ESC To apply the insert in the selected block

Search and replace

%s/old_text/new_text/[g | i | c] 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment