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

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

787 active golfers, 3665 entries

Solutions by @hanavi:
17
#142 - James Casey / @hanavi

12/22/2019 at 03:53AM

18
#>182 - James Casey / @hanavi

12/22/2019 at 03:51AM

19
#>211 - James Casey / @hanavi

12/22/2019 at 03:48AM

20
#>218 - James Casey / @hanavi

12/22/2019 at 03:45AM

22
#>322 - James Casey / @hanavi

12/22/2019 at 03:40AM

22
#>322 - James Casey / @hanavi

12/22/2019 at 03:43AM

23
#>359 - James Casey / @hanavi

12/22/2019 at 03:38AM

23
#>359 - James Casey / @hanavi

12/22/2019 at 03:39AM

24
#>379 - James Casey / @hanavi

12/22/2019 at 03:36AM

25
#>398 - James Casey / @hanavi

12/22/2019 at 03:31AM

25
#>398 - James Casey / @hanavi

12/22/2019 at 03:35AM

26
#>427 - James Casey / @hanavi

12/22/2019 at 03:30AM

27
#>460 - James Casey / @hanavi

12/22/2019 at 03:27AM

30
#>537 - James Casey / @hanavi

12/22/2019 at 03:20AM