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

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

739 active golfers, 3360 entries

Solutions by @sndsgns:
17
#97 - @sndsgns / @sndsgns

02/27/2015 at 12:18AM

17
#>97 - @sndsgns / @sndsgns

02/27/2015 at 01:02AM

19
#>192 - @sndsgns / @sndsgns

02/27/2015 at 12:06AM

21
#>216 - @sndsgns / @sndsgns

02/26/2015 at 07:38AM

22
#>295 - @sndsgns / @sndsgns

02/26/2015 at 07:25AM

23
#>330 - @sndsgns / @sndsgns

02/26/2015 at 07:13AM

24
#>353 - @sndsgns / @sndsgns

02/26/2015 at 07:00AM

24
#>353 - @sndsgns / @sndsgns

02/26/2015 at 07:03AM

25
#>373 - @sndsgns / @sndsgns

02/26/2015 at 06:52AM

29
#>477 - @sndsgns / @sndsgns

02/26/2015 at 06:47AM

31
#>524 - @sndsgns / @sndsgns

02/26/2015 at 06:26AM

32
#>554 - @sndsgns / @sndsgns

02/26/2015 at 01:50AM

35
#>632 - @sndsgns / @sndsgns

02/26/2015 at 01:48AM