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

788 active golfers, 3670 entries

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

08/14/2012 at 01:36AM

17
#>65 - lwjef / @lwjef

08/14/2012 at 01:44AM

19
#>207 - lwjef / @lwjef

08/14/2012 at 01:34AM

19
#>207 - lwjef / @lwjef

08/14/2012 at 01:43AM

21
#>228 - lwjef / @lwjef

08/14/2012 at 01:21AM

22
#>292 - lwjef / @lwjef

08/14/2012 at 01:17AM

23
#>339 - lwjef / @lwjef

08/13/2012 at 07:57AM

24
#>368 - lwjef / @lwjef

08/13/2012 at 08:00AM

25
#>390 - lwjef / @lwjef

08/13/2012 at 07:48AM

25
#>390 - lwjef / @lwjef

08/13/2012 at 07:53AM

29
#>502 - lwjef / @lwjef

08/13/2012 at 07:47AM

32
#>579 - lwjef / @lwjef

08/13/2012 at 07:36AM

35
#>672 - lwjef / @lwjef

08/13/2012 at 07:34AM

39
#>716 - lwjef / @lwjef

08/13/2012 at 07:32AM