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

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

736 active golfers, 3339 entries

Solutions by @me_coot:
20
#196 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:50PM

22
#>284 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:39PM

22
#>284 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:47PM

23
#>320 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:31PM

23
#>320 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:35PM

24
#>344 - Marcin Szamotulski / @me_coot

09/26/2012 at 10:01AM

25
#>364 - Marcin Szamotulski / @me_coot

09/26/2012 at 09:56AM

25
#>370 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:33PM

27
#>419 - Marcin Szamotulski / @me_coot

09/26/2012 at 09:55AM

28
#>446 - Marcin Szamotulski / @me_coot

09/26/2012 at 09:46AM

29
#>467 - Marcin Szamotulski / @me_coot

09/26/2012 at 09:34AM

30
#>492 - Marcin Szamotulski / @me_coot

09/26/2012 at 09:53AM

30
#>498 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:26PM