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

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

736 active golfers, 3339 entries

Solutions by @bornintheflames:
17
#112 - Remus Dalrymple / @bornintheflames

05/06/2017 at 12:26AM

19
#>190 - Remus Dalrymple / @bornintheflames

05/06/2017 at 12:25AM

21
#>215 - Remus Dalrymple / @bornintheflames

05/06/2017 at 12:23AM

22
#>295 - Remus Dalrymple / @bornintheflames

05/06/2017 at 12:22AM

24
#>354 - Remus Dalrymple / @bornintheflames

05/06/2017 at 12:20AM

26
#>399 - Remus Dalrymple / @bornintheflames

05/06/2017 at 12:19AM

28
#>452 - Remus Dalrymple / @bornintheflames

05/06/2017 at 12:18AM

29
#>477 - Remus Dalrymple / @bornintheflames

05/06/2017 at 12:16AM

30
#>500 - Remus Dalrymple / @bornintheflames

05/06/2017 at 12:13AM

31
#>525 - Remus Dalrymple / @bornintheflames

05/06/2017 at 12:08AM

31
#>525 - Remus Dalrymple / @bornintheflames

05/06/2017 at 12:11AM

33
#>580 - Remus Dalrymple / @bornintheflames

05/06/2017 at 12:06AM