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

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

739 active golfers, 3360 entries

Solutions by @GitNick:
17
#62 - Nicholas Clark / @GitNick

09/19/2012 at 06:43PM

19
#>189 - Nicholas Clark / @GitNick

09/19/2012 at 06:27PM

20
#>197 - Nicholas Clark / @GitNick

09/19/2012 at 06:17PM

21
#>209 - Nicholas Clark / @GitNick

09/19/2012 at 06:14PM

22
#>274 - Nicholas Clark / @GitNick

09/19/2012 at 05:53PM

23
#>316 - Nicholas Clark / @GitNick

09/19/2012 at 05:28PM

24
#>346 - Nicholas Clark / @GitNick

09/19/2012 at 05:26PM

25
#>366 - Nicholas Clark / @GitNick

09/19/2012 at 03:32AM

26
#>389 - Nicholas Clark / @GitNick

09/19/2012 at 03:27AM

27
#>421 - Nicholas Clark / @GitNick

09/19/2012 at 03:22AM

30
#>494 - Nicholas Clark / @GitNick

09/19/2012 at 02:50AM

31
#>512 - Nicholas Clark / @GitNick

09/19/2012 at 02:41AM