Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 4d1a4d82a860b7447200008d

Whitespace, empty lines and tabs

Convert tabs to spaces, strip empty lines and trailing whitespace.

Start file
	convert tabs to spaces

		strip all blank lines 

	and remove any trailing spaces   
End file
  convert tabs to spaces
    strip all blank lines
  and remove any trailing spaces

View Diff

1,5c1,3
< 	convert tabs to spaces
< 
< 		strip all blank lines 
< 
< 	and remove any trailing spaces   
---
>   convert tabs to spaces
>     strip all blank lines
>   and remove any trailing spaces

Solutions by @jjpiche:

Unlock 10 remaining solutions by signing in and submitting your own entry
Created by: @igrigorik

739 active golfers, 3360 entries

Solutions by @jjpiche:
17
#59 - Joseph J. Piché / @jjpiche

08/25/2012 at 06:13PM

19
#>189 - Joseph J. Piché / @jjpiche

08/25/2012 at 06:10PM

21
#>209 - Joseph J. Piché / @jjpiche

08/25/2012 at 06:06PM

22
#>272 - Joseph J. Piché / @jjpiche

08/25/2012 at 06:02PM

24
#>345 - Joseph J. Piché / @jjpiche

08/25/2012 at 06:01PM

26
#>389 - Joseph J. Piché / @jjpiche

08/25/2012 at 06:00PM

29
#>469 - Joseph J. Piché / @jjpiche

08/25/2012 at 05:58PM

30
#>494 - Joseph J. Piché / @jjpiche

08/25/2012 at 05:56PM

32
#>543 - Joseph J. Piché / @jjpiche

08/25/2012 at 02:46AM

33
#>567 - Joseph J. Piché / @jjpiche

08/25/2012 at 02:22AM