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

737 active golfers, 3340 entries

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

11/20/2018 at 03:39PM

18
#>161 - name / @name65894813

11/20/2018 at 03:35PM

19
#>190 - name / @name65894813

11/20/2018 at 03:31PM

20
#>197 - name / @name65894813

11/20/2018 at 03:27PM

21
#>215 - name / @name65894813

11/20/2018 at 03:22PM

21
#>215 - name / @name65894813

11/20/2018 at 03:24PM

22
#>299 - name / @name65894813

11/20/2018 at 03:16PM

23
#>333 - name / @name65894813

11/20/2018 at 03:14PM

24
#>354 - name / @name65894813

11/20/2018 at 03:13PM

26
#>399 - name / @name65894813

11/20/2018 at 03:12PM

36
#>651 - name / @name65894813

11/20/2018 at 03:12PM