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

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

788 active golfers, 3670 entries

Solutions by @ThatBJTerry:
17
#102 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:59AM

19
#>210 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:57AM

21
#>233 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:56AM

22
#>313 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:55AM

23
#>351 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:54AM

24
#>377 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:53AM

26
#>420 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:52AM

28
#>478 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:49AM

30
#>536 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:49AM

31
#>560 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:46AM

32
#>589 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:41AM

32
#>589 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:44AM

33
#>614 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:40AM