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

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

729 active golfers, 3290 entries

Solutions by @WutongYujie:
16
#9 - 梧桐王子 / @WutongYujie

05/05/2017 at 01:40AM

16
#>10 - 梧桐王子 / @WutongYujie

12/26/2017 at 09:57AM

16
#>10 - 梧桐王子 / @WutongYujie

12/26/2017 at 09:58AM

17
#>109 - 梧桐王子 / @WutongYujie

05/05/2017 at 01:38AM

18
#>157 - 梧桐王子 / @WutongYujie

05/05/2017 at 01:38AM

19
#>186 - 梧桐王子 / @WutongYujie

05/05/2017 at 01:37AM

20
#>192 - 梧桐王子 / @WutongYujie

05/05/2017 at 01:36AM

21
#>211 - 梧桐王子 / @WutongYujie

05/05/2017 at 01:35AM

22
#>290 - 梧桐王子 / @WutongYujie

05/05/2017 at 01:34AM

23
#>325 - 梧桐王子 / @WutongYujie

05/05/2017 at 01:33AM

24
#>348 - 梧桐王子 / @WutongYujie

05/05/2017 at 01:32AM

25
#>367 - 梧桐王子 / @WutongYujie

05/05/2017 at 01:32AM

28
#>446 - 梧桐王子 / @WutongYujie

05/05/2017 at 01:31AM

29
#>471 - 梧桐王子 / @WutongYujie

05/05/2017 at 01:30AM

31
#>519 - 梧桐王子 / @WutongYujie

05/05/2017 at 01:26AM

33
#>574 - 梧桐王子 / @WutongYujie

05/05/2017 at 01:24AM