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

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

736 active golfers, 3339 entries

Solutions by @lwjef:
17
#54 - lwjef / @lwjef

08/14/2012 at 01:36AM

17
#>54 - lwjef / @lwjef

08/14/2012 at 01:44AM

19
#>186 - lwjef / @lwjef

08/14/2012 at 01:34AM

19
#>186 - lwjef / @lwjef

08/14/2012 at 01:43AM

21
#>207 - lwjef / @lwjef

08/14/2012 at 01:21AM

22
#>270 - lwjef / @lwjef

08/14/2012 at 01:17AM

23
#>313 - lwjef / @lwjef

08/13/2012 at 07:57AM

24
#>342 - lwjef / @lwjef

08/13/2012 at 08:00AM

25
#>364 - lwjef / @lwjef

08/13/2012 at 07:48AM

25
#>364 - lwjef / @lwjef

08/13/2012 at 07:53AM

29
#>467 - lwjef / @lwjef

08/13/2012 at 07:47AM

32
#>541 - lwjef / @lwjef

08/13/2012 at 07:36AM

35
#>629 - lwjef / @lwjef

08/13/2012 at 07:34AM

39
#>671 - lwjef / @lwjef

08/13/2012 at 07:32AM