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

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

807 active golfers, 3763 entries

Solutions by @farthestworld:
17
#86 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:40PM

19
#>213 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:38PM

20
#>221 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:34PM

21
#>236 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:30PM

22
#>308 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:28PM

24
#>384 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:25PM

26
#>427 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:21PM

27
#>460 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:17PM

29
#>515 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:16PM

30
#>546 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:13PM

31
#>565 - Andrew Hlavats / @farthestworld

02/24/2013 at 09:10PM