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

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

808 active golfers, 3767 entries

Solutions by @me_coot:
20
#222 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:50PM

22
#>315 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:39PM

22
#>315 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:47PM

23
#>356 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:31PM

23
#>356 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:35PM

24
#>380 - Marcin Szamotulski / @me_coot

09/26/2012 at 10:01AM

25
#>401 - Marcin Szamotulski / @me_coot

09/26/2012 at 09:56AM

25
#>407 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:33PM

27
#>460 - Marcin Szamotulski / @me_coot

09/26/2012 at 09:55AM

28
#>490 - Marcin Szamotulski / @me_coot

09/26/2012 at 09:46AM

29
#>514 - Marcin Szamotulski / @me_coot

09/26/2012 at 09:34AM

30
#>542 - Marcin Szamotulski / @me_coot

09/26/2012 at 09:53AM

30
#>548 - Marcin Szamotulski / @me_coot

10/10/2013 at 09:26PM