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

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

807 active golfers, 3763 entries

Solutions by @Lory46845742:
17
#142 - Lory / @Lory46845742

11/14/2019 at 09:31AM

18
#>186 - Lory / @Lory46845742

11/14/2019 at 09:31AM

19
#>215 - Lory / @Lory46845742

11/14/2019 at 09:29AM

20
#>223 - Lory / @Lory46845742

11/14/2019 at 09:29AM

21
#>242 - Lory / @Lory46845742

11/14/2019 at 09:28AM

22
#>331 - Lory / @Lory46845742

11/14/2019 at 09:26AM

24
#>390 - Lory / @Lory46845742

11/14/2019 at 09:25AM

26
#>437 - Lory / @Lory46845742

11/14/2019 at 09:24AM

27
#>472 - Lory / @Lory46845742

11/14/2019 at 09:21AM

34
#>672 - Lory / @Lory46845742

11/14/2019 at 09:19AM