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

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

805 active golfers, 3745 entries

Solutions by @ThatBJTerry:
17
#103 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:59AM

19
#>213 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:57AM

21
#>238 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:56AM

22
#>320 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:55AM

23
#>359 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:54AM

24
#>385 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:53AM

26
#>428 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:52AM

28
#>487 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:49AM

30
#>546 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:49AM

31
#>570 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:46AM

32
#>599 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:41AM

32
#>599 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:44AM

33
#>625 - BJ Terry / @ThatBJTerry

05/26/2014 at 02:40AM