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

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

787 active golfers, 3665 entries

Solutions by @vg53210350:
17
#130 - vg / @vg53210350

10/28/2018 at 10:17PM

18
#>182 - vg / @vg53210350

10/28/2018 at 10:13PM

19
#>211 - vg / @vg53210350

10/28/2018 at 10:11PM

20
#>218 - vg / @vg53210350

10/28/2018 at 10:08PM

21
#>236 - vg / @vg53210350

10/28/2018 at 10:03PM

22
#>321 - vg / @vg53210350

10/28/2018 at 09:56PM

24
#>379 - vg / @vg53210350

10/28/2018 at 09:54PM

26
#>426 - vg / @vg53210350

10/28/2018 at 09:49PM

27
#>459 - vg / @vg53210350

10/28/2018 at 09:48PM

28
#>484 - vg / @vg53210350

10/28/2018 at 09:45PM

30
#>537 - vg / @vg53210350

10/28/2018 at 09:43PM