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

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

736 active golfers, 3339 entries

Solutions by @poeminlash:
16
#28 - Qing Liu / @poeminlash

08/06/2022 at 10:18PM

17
#>141 - Qing Liu / @poeminlash

08/06/2022 at 10:17PM

18
#>161 - Qing Liu / @poeminlash

08/06/2022 at 10:17PM

19
#>191 - Qing Liu / @poeminlash

08/06/2022 at 10:16PM

20
#>199 - Qing Liu / @poeminlash

08/06/2022 at 10:16PM

21
#>216 - Qing Liu / @poeminlash

08/06/2022 at 10:11PM

22
#>302 - Qing Liu / @poeminlash

06/29/2022 at 03:59AM

22
#>302 - Qing Liu / @poeminlash

08/06/2022 at 10:15PM

23
#>334 - Qing Liu / @poeminlash

06/29/2022 at 03:52AM

26
#>401 - Qing Liu / @poeminlash

06/29/2022 at 03:47AM

27
#>432 - Qing Liu / @poeminlash

06/29/2022 at 03:46AM

29
#>481 - Qing Liu / @poeminlash

06/29/2022 at 03:38AM

29
#>481 - Qing Liu / @poeminlash

06/29/2022 at 03:44AM

30
#>503 - Qing Liu / @poeminlash

06/29/2022 at 03:27AM

38
#>670 - Qing Liu / @poeminlash

06/29/2022 at 03:11AM