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

787 active golfers, 3665 entries

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

11/20/2018 at 03:39PM

18
#>182 - name / @name65894813

11/20/2018 at 03:35PM

19
#>211 - name / @name65894813

11/20/2018 at 03:31PM

20
#>218 - name / @name65894813

11/20/2018 at 03:27PM

21
#>236 - name / @name65894813

11/20/2018 at 03:22PM

21
#>236 - name / @name65894813

11/20/2018 at 03:24PM

22
#>321 - name / @name65894813

11/20/2018 at 03:16PM

23
#>358 - name / @name65894813

11/20/2018 at 03:14PM

24
#>379 - name / @name65894813

11/20/2018 at 03:13PM

26
#>426 - name / @name65894813

11/20/2018 at 03:12PM

36
#>693 - name / @name65894813

11/20/2018 at 03:12PM