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

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

736 active golfers, 3339 entries

Solutions by @ChaituNu:
16
#6 - Chaitanya Desu / @ChaituNu

05/04/2014 at 11:47PM

17
#>90 - Chaitanya Desu / @ChaituNu

05/04/2014 at 11:05PM

17
#>90 - Chaitanya Desu / @ChaituNu

05/04/2014 at 11:45PM

19
#>189 - Chaitanya Desu / @ChaituNu

05/04/2014 at 11:03PM

19
#>189 - Chaitanya Desu / @ChaituNu

05/04/2014 at 11:43PM

21
#>212 - Chaitanya Desu / @ChaituNu

05/04/2014 at 11:02PM

22
#>291 - Chaitanya Desu / @ChaituNu

05/04/2014 at 11:00PM

23
#>325 - Chaitanya Desu / @ChaituNu

05/04/2014 at 10:54PM

23
#>325 - Chaitanya Desu / @ChaituNu

05/04/2014 at 10:59PM

26
#>392 - Chaitanya Desu / @ChaituNu

05/04/2014 at 10:53PM

28
#>446 - Chaitanya Desu / @ChaituNu

05/04/2014 at 10:52PM

30
#>499 - Chaitanya Desu / @ChaituNu

05/04/2014 at 10:49PM

32
#>550 - Chaitanya Desu / @ChaituNu

05/04/2014 at 10:46PM

33
#>573 - Chaitanya Desu / @ChaituNu

05/04/2014 at 10:42PM