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

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

807 active golfers, 3763 entries

Solutions by @webtwoosucks:
17
#80 - Averell Dalton / @webtwoosucks

01/02/2013 at 01:17AM

18
#>186 - Averell Dalton / @webtwoosucks

01/02/2013 at 01:15AM

19
#>213 - Averell Dalton / @webtwoosucks

01/02/2013 at 01:12AM

20
#>221 - Averell Dalton / @webtwoosucks

01/02/2013 at 01:11AM

21
#>235 - Averell Dalton / @webtwoosucks

01/02/2013 at 12:56AM

22
#>307 - Averell Dalton / @webtwoosucks

01/02/2013 at 12:50AM

23
#>351 - Averell Dalton / @webtwoosucks

01/02/2013 at 12:55AM

24
#>383 - Averell Dalton / @webtwoosucks

01/02/2013 at 12:49AM

26
#>427 - Averell Dalton / @webtwoosucks

01/02/2013 at 12:46AM

28
#>489 - Averell Dalton / @webtwoosucks

01/02/2013 at 12:44AM

29
#>515 - Averell Dalton / @webtwoosucks

01/02/2013 at 12:41AM

33
#>623 - Averell Dalton / @webtwoosucks

01/02/2013 at 12:40AM

37
#>719 - Averell Dalton / @webtwoosucks

01/02/2013 at 12:27AM

39
#>735 - Averell Dalton / @webtwoosucks

01/02/2013 at 12:26AM