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 @farthestworld:

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

739 active golfers, 3360 entries

Solutions by @farthestworld:
17
#75 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:40PM

19
#>190 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:38PM

20
#>197 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:34PM

21
#>211 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:30PM

22
#>279 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:28PM

24
#>350 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:25PM

26
#>391 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:21PM

27
#>422 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:17PM

29
#>471 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:16PM

30
#>499 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:13PM

31
#>517 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:10PM