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

729 active golfers, 3290 entries

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

05/26/2014 at 02:59AM

19
#>185 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:57AM

21
#>208 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:56AM

22
#>286 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:55AM

23
#>319 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:54AM

24
#>345 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:53AM

26
#>386 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:52AM

28
#>440 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:49AM

30
#>493 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:49AM

31
#>516 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:46AM

32
#>545 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:41AM

32
#>545 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:44AM

33
#>567 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:40AM