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

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

816 active golfers, 3795 entries

Solutions by @name65894813:
17
#136 - name / @name65894813

11/20/2018 at 03:39PM

18
#>188 - name / @name65894813

11/20/2018 at 03:35PM

19
#>217 - name / @name65894813

11/20/2018 at 03:31PM

20
#>225 - name / @name65894813

11/20/2018 at 03:27PM

21
#>244 - name / @name65894813

11/20/2018 at 03:22PM

21
#>244 - name / @name65894813

11/20/2018 at 03:24PM

22
#>332 - name / @name65894813

11/20/2018 at 03:16PM

23
#>371 - name / @name65894813

11/20/2018 at 03:14PM

24
#>392 - name / @name65894813

11/20/2018 at 03:13PM

26
#>440 - name / @name65894813

11/20/2018 at 03:12PM

36
#>714 - name / @name65894813

11/20/2018 at 03:12PM