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

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

788 active golfers, 3670 entries

Solutions by @park_jungy:
16
#20 - Jung Yeon Park / @park_jungy

01/11/2021 at 05:06PM

17
#>146 - Jung Yeon Park / @park_jungy

01/11/2021 at 05:05PM

18
#>182 - Jung Yeon Park / @park_jungy

01/11/2021 at 05:05PM

19
#>212 - Jung Yeon Park / @park_jungy

01/11/2021 at 05:05PM

20
#>218 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:57PM

21
#>236 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:57PM

24
#>380 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:56PM

28
#>487 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:56PM

30
#>540 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:54PM

32
#>590 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:54PM

36
#>697 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:55PM

37
#>708 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:51PM