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

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

788 active golfers, 3670 entries

Solutions by @sebokopter:
19
#210 - Sebastian Heil / @sebokopter

03/16/2013 at 04:31AM

20
#>216 - Sebastian Heil / @sebokopter

03/16/2013 at 04:29AM

21
#>230 - Sebastian Heil / @sebokopter

03/16/2013 at 04:27AM

22
#>301 - Sebastian Heil / @sebokopter

03/16/2013 at 04:10AM

23
#>340 - Sebastian Heil / @sebokopter

09/26/2012 at 07:12PM

24
#>370 - Sebastian Heil / @sebokopter

09/26/2012 at 07:09PM

24
#>370 - Sebastian Heil / @sebokopter

09/26/2012 at 07:12PM

25
#>390 - Sebastian Heil / @sebokopter

09/26/2012 at 07:11PM

26
#>415 - Sebastian Heil / @sebokopter

09/26/2012 at 07:02PM

26
#>415 - Sebastian Heil / @sebokopter

09/26/2012 at 07:08PM

27
#>448 - Sebastian Heil / @sebokopter

09/26/2012 at 07:01PM

30
#>529 - Sebastian Heil / @sebokopter

09/26/2012 at 06:57PM

31
#>548 - Sebastian Heil / @sebokopter

09/26/2012 at 06:57PM

35
#>672 - Sebastian Heil / @sebokopter

09/26/2012 at 06:56PM

57
#>762 - Sebastian Heil / @sebokopter

09/26/2012 at 06:55PM

58
#>763 - Sebastian Heil / @sebokopter

09/26/2012 at 06:49PM

67
#>773 - Sebastian Heil / @sebokopter

09/26/2012 at 06:50PM