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

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

807 active golfers, 3763 entries

Solutions by @bpcode:
17
#59 - Son of Bongo / @bpcode

05/06/2012 at 01:45PM

18
#>186 - Son of Bongo / @bpcode

05/06/2012 at 01:57PM

19
#>210 - Son of Bongo / @bpcode

05/06/2012 at 01:42PM

20
#>220 - Son of Bongo / @bpcode

05/06/2012 at 01:39PM

22
#>300 - Son of Bongo / @bpcode

05/06/2012 at 01:22PM

24
#>377 - Son of Bongo / @bpcode

05/06/2012 at 12:55PM

25
#>399 - Son of Bongo / @bpcode

05/06/2012 at 12:46PM

27
#>456 - Son of Bongo / @bpcode

05/06/2012 at 12:39PM

31
#>559 - Son of Bongo / @bpcode

05/06/2012 at 12:30PM

33
#>619 - Son of Bongo / @bpcode

05/06/2012 at 12:23PM

48
#>773 - Son of Bongo / @bpcode

05/05/2012 at 05:06PM