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

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

729 active golfers, 3290 entries

Solutions by @liberalbias:
17
#54 - Charles Gordon / @liberalbias

08/23/2012 at 06:17AM

19
#>183 - Charles Gordon / @liberalbias

08/23/2012 at 06:17AM

20
#>190 - Charles Gordon / @liberalbias

08/23/2012 at 06:15AM

21
#>203 - Charles Gordon / @liberalbias

08/23/2012 at 06:12AM

21
#>203 - Charles Gordon / @liberalbias

08/23/2012 at 06:14AM

22
#>265 - Charles Gordon / @liberalbias

08/23/2012 at 06:03AM

22
#>265 - Charles Gordon / @liberalbias

08/23/2012 at 06:11AM

23
#>307 - Charles Gordon / @liberalbias

08/23/2012 at 06:03AM

24
#>337 - Charles Gordon / @liberalbias

08/23/2012 at 05:47AM

24
#>337 - Charles Gordon / @liberalbias

08/23/2012 at 06:02AM

25
#>358 - Charles Gordon / @liberalbias

08/23/2012 at 05:41AM

25
#>358 - Charles Gordon / @liberalbias

08/23/2012 at 05:46AM

28
#>440 - Charles Gordon / @liberalbias

08/23/2012 at 05:33AM

31
#>504 - Charles Gordon / @liberalbias

08/23/2012 at 05:32AM

32
#>535 - Charles Gordon / @liberalbias

08/23/2012 at 05:25AM