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

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

788 active golfers, 3670 entries

Solutions by @Aleksan43607471:
16
#30 - Александр Моисеев / @Aleksan43607471

01/19/2023 at 12:28PM

17
#>159 - Александр Моисеев / @Aleksan43607471

01/19/2023 at 12:27PM

18
#>182 - Александр Моисеев / @Aleksan43607471

01/19/2023 at 12:24PM

19
#>212 - Александр Моисеев / @Aleksan43607471

01/19/2023 at 12:21PM

20
#>221 - Александр Моисеев / @Aleksan43607471

01/19/2023 at 12:19PM

20
#>221 - Александр Моисеев / @Aleksan43607471

01/19/2023 at 12:20PM

21
#>238 - Александр Моисеев / @Aleksan43607471

01/19/2023 at 12:13PM

22
#>324 - Александр Моисеев / @Aleksan43607471

01/19/2023 at 12:12PM

26
#>429 - Александр Моисеев / @Aleksan43607471

01/19/2023 at 12:04PM

27
#>461 - Александр Моисеев / @Aleksan43607471

01/19/2023 at 11:58AM