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

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

729 active golfers, 3290 entries

Solutions by @trxdbg:
17
#105 - trx / @trxdbg

10/15/2016 at 11:30AM

17
#>105 - trx / @trxdbg

10/15/2016 at 11:36AM

19
#>186 - trx / @trxdbg

10/15/2016 at 10:29AM

20
#>192 - trx / @trxdbg

10/15/2016 at 10:27AM

21
#>211 - trx / @trxdbg

10/15/2016 at 10:22AM

21
#>211 - trx / @trxdbg

10/15/2016 at 10:27AM

22
#>289 - trx / @trxdbg

10/15/2016 at 10:19AM

23
#>324 - trx / @trxdbg

10/15/2016 at 10:18AM

25
#>367 - trx / @trxdbg

10/15/2016 at 09:54AM