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

780 active golfers, 3614 entries

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

10/10/2013 at 09:50PM

22
#>302 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:39PM

22
#>302 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:47PM

23
#>341 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:31PM

23
#>341 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:35PM

24
#>365 - Marcin Szamotulski / @me_coot

09/26/2012 at 10:01AM

25
#>385 - Marcin Szamotulski / @me_coot

09/26/2012 at 09:56AM

25
#>391 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:33PM

27
#>443 - Marcin Szamotulski / @me_coot

09/26/2012 at 09:55AM

28
#>473 - Marcin Szamotulski / @me_coot

09/26/2012 at 09:46AM

29
#>497 - Marcin Szamotulski / @me_coot

09/26/2012 at 09:34AM

30
#>522 - Marcin Szamotulski / @me_coot

09/26/2012 at 09:53AM

30
#>528 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:26PM