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

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

735 active golfers, 3330 entries

Solutions by @tylerccarson:
24
#354 - Tyler Carson / @tylerccarson

12/29/2021 at 04:22PM

26
#>400 - Tyler Carson / @tylerccarson

12/29/2021 at 04:17PM

27
#>431 - Tyler Carson / @tylerccarson

12/29/2021 at 04:07PM

30
#>502 - Tyler Carson / @tylerccarson

12/29/2021 at 04:03PM

32
#>552 - Tyler Carson / @tylerccarson

12/29/2021 at 04:01PM

33
#>587 - Tyler Carson / @tylerccarson

12/29/2021 at 03:59PM

34
#>620 - Tyler Carson / @tylerccarson

12/29/2021 at 03:51PM

36
#>654 - Tyler Carson / @tylerccarson

12/29/2021 at 04:00PM

68
#>722 - Tyler Carson / @tylerccarson

12/29/2021 at 03:49PM