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 4d4ab047795d626036000034

imports alignment (python)

Align as one import per line.

Start file
from random import randint, uniform, shuffle, sample
from math import ceil, pow
End file
from random import randint
from random import uniform
from random import shuffle
from random import sample
from math import ceil
from math import pow

View Diff

1,2c1,6
< from random import randint, uniform, shuffle, sample
< from math import ceil, pow
---
> from random import randint
> from random import uniform
> from random import shuffle
> from random import sample
> from math import ceil
> from math import pow

Solutions by @GavinKoeng:

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

202 active golfers, 721 entries

Solutions by @GavinKoeng:
17
#51 - Gavin / @GavinKoeng

07/10/2026 at 05:52AM

17
#>51 - Gavin / @GavinKoeng

07/10/2026 at 05:52AM

18
#>58 - Gavin / @GavinKoeng

07/10/2026 at 05:52AM

19
#>70 - Gavin / @GavinKoeng

07/10/2026 at 05:52AM

20
#>96 - Gavin / @GavinKoeng

07/10/2026 at 05:51AM

21
#>99 - Gavin / @GavinKoeng

07/10/2026 at 05:51AM

22
#>105 - Gavin / @GavinKoeng

07/10/2026 at 05:51AM

23
#>116 - Gavin / @GavinKoeng

07/10/2026 at 05:51AM

24
#>127 - Gavin / @GavinKoeng

07/10/2026 at 05:50AM

25
#>129 - Gavin / @GavinKoeng

07/10/2026 at 05:49AM

26
#>135 - Gavin / @GavinKoeng

07/10/2026 at 05:49AM

27
#>143 - Gavin / @GavinKoeng

07/10/2026 at 05:49AM

29
#>151 - Gavin / @GavinKoeng

07/10/2026 at 05:48AM

30
#>158 - Gavin / @GavinKoeng

07/10/2026 at 05:47AM

38
#>181 - Gavin / @GavinKoeng

07/10/2026 at 05:47AM