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

787 active golfers, 3665 entries

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

05/04/2014 at 11:47PM

17
#>101 - Chaitanya Desu / @ChaituNu

05/04/2014 at 11:05PM

17
#>101 - Chaitanya Desu / @ChaituNu

05/04/2014 at 11:45PM

19
#>210 - Chaitanya Desu / @ChaituNu

05/04/2014 at 11:03PM

19
#>210 - Chaitanya Desu / @ChaituNu

05/04/2014 at 11:43PM

21
#>233 - Chaitanya Desu / @ChaituNu

05/04/2014 at 11:02PM

22
#>313 - Chaitanya Desu / @ChaituNu

05/04/2014 at 11:00PM

23
#>350 - Chaitanya Desu / @ChaituNu

05/04/2014 at 10:54PM

23
#>350 - Chaitanya Desu / @ChaituNu

05/04/2014 at 10:59PM

26
#>419 - Chaitanya Desu / @ChaituNu

05/04/2014 at 10:53PM

28
#>477 - Chaitanya Desu / @ChaituNu

05/04/2014 at 10:52PM

30
#>535 - Chaitanya Desu / @ChaituNu

05/04/2014 at 10:49PM

32
#>587 - Chaitanya Desu / @ChaituNu

05/04/2014 at 10:46PM

33
#>613 - Chaitanya Desu / @ChaituNu

05/04/2014 at 10:42PM