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

736 active golfers, 3339 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
#>115 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:41AM

17
#>115 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:49AM

18
#>161 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:39AM

19
#>190 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:38AM

20
#>196 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:36AM

21
#>215 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:32AM

21
#>215 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:34AM

22
#>296 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:20AM

22
#>296 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:31AM

23
#>331 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:12AM

25
#>373 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:03AM

25
#>373 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:11AM

26
#>399 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:02AM

27
#>431 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 12:02AM

28
#>452 - Guirec CORBEL / @GuirecCorbel

04/04/2018 at 09:13PM