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

787 active golfers, 3665 entries

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

02/19/2013 at 08:33PM

17
#>84 - Adam Bell / @adamgbell

02/19/2013 at 08:21PM

17
#>84 - Adam Bell / @adamgbell

02/19/2013 at 08:22PM

18
#>182 - Adam Bell / @adamgbell

02/19/2013 at 08:15PM

18
#>182 - Adam Bell / @adamgbell

02/19/2013 at 08:16PM

19
#>209 - Adam Bell / @adamgbell

02/19/2013 at 08:10PM

20
#>216 - Adam Bell / @adamgbell

02/19/2013 at 08:02PM

21
#>229 - Adam Bell / @adamgbell

02/19/2013 at 07:49PM

22
#>299 - Adam Bell / @adamgbell

02/19/2013 at 05:39PM

23
#>341 - Adam Bell / @adamgbell

02/19/2013 at 05:37PM

24
#>373 - Adam Bell / @adamgbell

02/19/2013 at 05:26PM

25
#>390 - Adam Bell / @adamgbell

02/19/2013 at 05:35PM

26
#>416 - Adam Bell / @adamgbell

02/19/2013 at 05:22PM

30
#>533 - Adam Bell / @adamgbell

02/19/2013 at 02:59PM

31
#>552 - Adam Bell / @adamgbell

02/19/2013 at 05:18PM

32
#>580 - Adam Bell / @adamgbell

02/19/2013 at 02:55PM

34
#>649 - Adam Bell / @adamgbell

02/19/2013 at 02:57PM