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

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

787 active golfers, 3665 entries

Solutions by @GuirecCorbel:
16
#13 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:51AM

16
#>13 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:52AM

17
#>126 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:41AM

17
#>126 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:49AM

18
#>182 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:39AM

19
#>211 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:38AM

20
#>217 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:36AM

21
#>236 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:32AM

21
#>236 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:34AM

22
#>318 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:20AM

22
#>318 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:31AM

23
#>356 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:12AM

25
#>398 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:03AM

25
#>398 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:11AM

26
#>426 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:02AM

27
#>459 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:02AM

28
#>483 - Guirec CORBEL / @GuirecCorbel

04/04/2018 at 09:13PM