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 54595b13128576000257a3c1

Basic renumbering

Renumbering Basic.

Start file
10 PRINT "The actual"
15 PRINT "code doesn't"
16 PRINT "really matter."
20 PRINT "Just take"
25 PRINT "care of"
30 PRINT "the numbers."
End file
10 PRINT "The actual"
20 PRINT "code doesn't"
30 PRINT "really matter."
40 PRINT "Just take"
50 PRINT "care of"
60 PRINT "the numbers."

View Diff

2,6c2,6
< 15 PRINT "code doesn't"
< 16 PRINT "really matter."
< 20 PRINT "Just take"
< 25 PRINT "care of"
< 30 PRINT "the numbers."
---
> 20 PRINT "code doesn't"
> 30 PRINT "really matter."
> 40 PRINT "Just take"
> 50 PRINT "care of"
> 60 PRINT "the numbers."

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 1195 remaining solutions by signing in and submitting your own entry
#1196 Dominic Z / @thammaaa - Score: 66 - 12/21/17 @ 12:59
<C-V>GI10<Esc><Esc><C-V>G<C-N><C-A><Esc>ugvgvv<C-A><Esc>uu<C-R><Right><Right><Esc>v<Down><Down><Down><Up><Up><Up><Esc><C-V><Down><Down><Down><Down><Down><Right>d<Left><Left><Down><C-V><Down><Down><Down><Down><C-A><Esc>u<C-V>Gg<C-V><C-A><Esc>u<C-V>Gg<C-A>ZZ

0 comments


Created by: @udioica

1196 active golfers, 5311 entries

Leaderboard (lowest score wins):
11
#211 - Alexander / @Alexand64026860

03/25/2020 at 03:13PM

11
#212 - Vim Türkçe / @vimturkce

03/26/2020 at 04:15PM

11
#213 - ErQ325 / @EQ325

03/28/2020 at 03:57AM

11
#214 - Kyle X. Clark / @KyXr_Clark

03/29/2020 at 11:07PM

11
#215 - Marco / @Marco24456514

04/02/2020 at 01:37PM

11
#216 - RaylanFox / @RaylanFox

04/06/2020 at 01:55PM

11
#217 - edvrds / @edvrds

04/18/2020 at 07:53PM

11
#218 - せいほう / @FICSQF

04/24/2020 at 05:18AM

11
#219 - Moatvald / @moatvald

05/01/2020 at 07:54AM

11
#220 - Anthony BERNARD / @TweetTontony

05/04/2020 at 01:24PM

11
#221 - Jake Van Alstyne / @jake_va

05/14/2020 at 04:24PM

11
#222 - RockerZZY / @rocker_zzy

05/30/2020 at 04:36AM

11
#223 - Kevin Keefe / @KevinKeefe5

06/03/2020 at 05:30PM

11
#224 - Valdimar / @genkobar

06/05/2020 at 08:16PM

11
#225 - Romain / @djizeuscoco

06/17/2020 at 08:52AM

11
#226 - 大矢元海 / @008Genkai

07/07/2020 at 07:27PM

11
#227 - analogpixel / @analogp1xel

08/06/2020 at 09:40PM

11
#228 - Vinay Sharma / @VinaySh63956554

08/10/2020 at 04:34AM

11
#229 - mindgitrwx / @mindgitrwx

08/10/2020 at 01:43PM

11
#230 - Martin Bielik / @mabielik

08/12/2020 at 07:54PM

11
#231 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 08:37PM

11
#232 - vito / @vito49999722

08/17/2020 at 06:16PM

11
#233 - Theo Sarrazin / @tshaero

08/20/2020 at 01:11PM

11
#234 - Tanzeel Kazi / @tanzeelkazi

08/25/2020 at 04:26PM

11
#235 - speisz / @speiszc

09/02/2020 at 09:11PM

11
#236 - akouryy / @akouryy1

09/22/2020 at 07:30AM

11
#237 - mevmev / @mevmev8

10/02/2020 at 11:00PM

11
#238 - Ivan Kwong / @IvanKwong5

10/04/2020 at 08:02AM

11
#239 - lamtt77 / @lamtt77

10/10/2020 at 05:39AM

11
#240 - moh ayaya / @AyayaMoh

11/07/2020 at 10:44PM