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

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

663 active golfers, 2979 entries

Solutions by @adamgbell:
16
#4 - Adam Bell / @adamgbell

02/19/2013 at 08:33PM

17
#>62 - Adam Bell / @adamgbell

02/19/2013 at 08:21PM

17
#>62 - Adam Bell / @adamgbell

02/19/2013 at 08:22PM

18
#>134 - Adam Bell / @adamgbell

02/19/2013 at 08:15PM

18
#>134 - Adam Bell / @adamgbell

02/19/2013 at 08:16PM

19
#>160 - Adam Bell / @adamgbell

02/19/2013 at 08:10PM

20
#>166 - Adam Bell / @adamgbell

02/19/2013 at 08:02PM

21
#>177 - Adam Bell / @adamgbell

02/19/2013 at 07:49PM

22
#>241 - Adam Bell / @adamgbell

02/19/2013 at 05:39PM

23
#>277 - Adam Bell / @adamgbell

02/19/2013 at 05:37PM

24
#>307 - Adam Bell / @adamgbell

02/19/2013 at 05:26PM

25
#>323 - Adam Bell / @adamgbell

02/19/2013 at 05:35PM

26
#>347 - Adam Bell / @adamgbell

02/19/2013 at 05:22PM

30
#>447 - Adam Bell / @adamgbell

02/19/2013 at 02:59PM

31
#>464 - Adam Bell / @adamgbell

02/19/2013 at 05:18PM

32
#>491 - Adam Bell / @adamgbell

02/19/2013 at 02:55PM

34
#>556 - Adam Bell / @adamgbell

02/19/2013 at 02:57PM