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

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

788 active golfers, 3670 entries

Solutions by @Trugbildjaeger:
17
#122 - Solomon / @Trugbildjaeger

04/23/2017 at 05:28PM

18
#>182 - Solomon / @Trugbildjaeger

04/23/2017 at 05:27PM

19
#>211 - Solomon / @Trugbildjaeger

04/23/2017 at 05:26PM

20
#>217 - Solomon / @Trugbildjaeger

04/23/2017 at 05:25PM

21
#>236 - Solomon / @Trugbildjaeger

04/23/2017 at 05:22PM

21
#>236 - Solomon / @Trugbildjaeger

04/23/2017 at 05:23PM

22
#>317 - Solomon / @Trugbildjaeger

04/23/2017 at 03:06PM

23
#>357 - Solomon / @Trugbildjaeger

04/23/2017 at 03:02PM

24
#>380 - Solomon / @Trugbildjaeger

04/23/2017 at 03:02PM

27
#>460 - Solomon / @Trugbildjaeger

04/23/2017 at 03:00PM

35
#>673 - Solomon / @Trugbildjaeger

04/23/2017 at 02:58PM

36
#>694 - Solomon / @Trugbildjaeger

04/23/2017 at 02:59PM