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

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

663 active golfers, 2979 entries

Solutions by @zulolosi:
16
#5 - Petro Тrouq / @zulolosi

03/26/2013 at 07:27AM

17
#>64 - Petro Тrouq / @zulolosi

03/26/2013 at 07:22AM

19
#>161 - Petro Тrouq / @zulolosi

03/26/2013 at 07:22AM

20
#>166 - Petro Тrouq / @zulolosi

03/26/2013 at 07:21AM

21
#>178 - Petro Тrouq / @zulolosi

03/26/2013 at 07:19AM

22
#>243 - Petro Тrouq / @zulolosi

03/26/2013 at 07:19AM

23
#>278 - Petro Тrouq / @zulolosi

03/26/2013 at 07:17AM

24
#>308 - Petro Тrouq / @zulolosi

03/26/2013 at 07:16AM

25
#>323 - Petro Тrouq / @zulolosi

03/26/2013 at 07:15AM

31
#>464 - Petro Тrouq / @zulolosi

03/26/2013 at 07:09AM

31
#>464 - Petro Тrouq / @zulolosi

03/26/2013 at 07:11AM

32
#>493 - Petro Тrouq / @zulolosi

03/26/2013 at 07:06AM