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

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

661 active golfers, 2970 entries

Solutions by @jackliusr:
16
#7 - jackliusr / @jackliusr

01/14/2016 at 05:46AM

17
#>91 - jackliusr / @jackliusr

01/14/2016 at 05:42AM

19
#>162 - jackliusr / @jackliusr

01/14/2016 at 05:41AM

21
#>183 - jackliusr / @jackliusr

01/14/2016 at 05:38AM

22
#>258 - jackliusr / @jackliusr

01/14/2016 at 05:37AM

24
#>311 - jackliusr / @jackliusr

01/14/2016 at 05:34AM

26
#>355 - jackliusr / @jackliusr

01/14/2016 at 05:33AM

27
#>383 - jackliusr / @jackliusr

01/14/2016 at 05:32AM

28
#>402 - jackliusr / @jackliusr

01/14/2016 at 05:20AM

30
#>448 - jackliusr / @jackliusr

01/14/2016 at 05:14AM

32
#>499 - jackliusr / @jackliusr

01/14/2016 at 05:09AM