Created
July 18, 2011 15:40
-
-
Save hoffstein/1089896 to your computer and use it in GitHub Desktop.
Vim keep only the first word in each line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:s/\(\s*\w\+\).*/\1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This breaks on Umlauts.