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

662 active golfers, 2978 entries

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

01/11/2021 at 05:06PM

17
#>124 - Jung Yeon Park / @park_jungy

01/11/2021 at 05:05PM

18
#>134 - Jung Yeon Park / @park_jungy

01/11/2021 at 05:05PM

19
#>163 - Jung Yeon Park / @park_jungy

01/11/2021 at 05:05PM

20
#>168 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:57PM

21
#>184 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:57PM

24
#>313 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:56PM

28
#>408 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:56PM

30
#>453 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:54PM

32
#>500 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:54PM

36
#>594 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:55PM

37
#>604 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:51PM