Wednesday, March 10, 2010

VIM helpful commands

:sort u (remove duplicate line)
:g/pattern/d (delete line)
:g/^$/d (delete blank lines)
:%s/.*/\U&/ (UPPER CASE)
:%s/.*/\L&/ (LOWER CASE)

No comments:

Post a Comment