Linux: VIM Commands

From Define Wiki
Revision as of 18:08, 7 November 2012 by David (talk | contribs) (Created page with "Delete the first word on every line of a file: <syntaxhighlight> :%s/^\s*[^ ]* //g </syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Delete the first word on every line of a file:

  :%s/^\s*[^ ]* //g