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

780 active golfers, 3614 entries

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

05/23/2011 at 09:43PM

20
#>209 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:41PM

22
#>268 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:39PM

24
#>361 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:39PM

26
#>407 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:36PM

27
#>434 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:35PM

27
#>434 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:38PM

28
#>466 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:34PM

29
#>492 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:33PM

32
#>569 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:31PM

33
#>592 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 09:30PM

35
#>663 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 06:27PM

35
#>663 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 06:31PM

37
#>695 - Dragan Cvetinovic / @kawkafi

05/23/2011 at 06:23PM