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

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

794 active golfers, 3691 entries

Solutions by @yoshitune9:
17
#127 - niwatoco / @yoshitune9

07/23/2018 at 08:13PM

19
#>212 - niwatoco / @yoshitune9

07/23/2018 at 08:11PM

20
#>219 - niwatoco / @yoshitune9

07/23/2018 at 08:10PM

21
#>237 - niwatoco / @yoshitune9

07/23/2018 at 08:09PM

22
#>322 - niwatoco / @yoshitune9

07/23/2018 at 08:06PM

23
#>362 - niwatoco / @yoshitune9

07/23/2018 at 08:05PM

24
#>383 - niwatoco / @yoshitune9

07/23/2018 at 07:57PM

27
#>464 - niwatoco / @yoshitune9

07/23/2018 at 07:55PM

27
#>464 - niwatoco / @yoshitune9

07/23/2018 at 07:56PM

28
#>488 - niwatoco / @yoshitune9

07/23/2018 at 07:53PM

29
#>517 - niwatoco / @yoshitune9

07/23/2018 at 07:46PM

29
#>517 - niwatoco / @yoshitune9

07/23/2018 at 07:56PM

29
#>517 - niwatoco / @yoshitune9

07/23/2018 at 07:56PM

33
#>628 - niwatoco / @yoshitune9

07/23/2018 at 07:42PM

37
#>709 - niwatoco / @yoshitune9

07/23/2018 at 07:36PM