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

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

667 active golfers, 3009 entries

Solutions by @kawkafi:
19
#140 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:43PM

20
#>166 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:41PM

22
#>217 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:39PM

24
#>301 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:39PM

26
#>344 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:36PM

27
#>366 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:35PM

27
#>366 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:38PM

28
#>394 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:34PM

29
#>416 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:33PM

32
#>488 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:31PM

33
#>507 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:30PM

35
#>575 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 06:27PM

35
#>575 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 06:31PM

37
#>600 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 06:23PM