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 1217 remaining solutions by signing in and submitting your own entry
#1218 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

1218 active golfers, 5393 entries

Leaderboard (lowest score wins):
11
#241 - Zack Freedman / @freedman_zack

11/07/2020 at 11:12PM

11
#242 - David Kutschke / @D4KU_

11/18/2020 at 08:07PM

11
#243 - quemeraisc / @quemeraisc

11/24/2020 at 10:04AM

11
#244 - hepebexè / @hepebexe

11/30/2020 at 10:22PM

11
#245 - Neverlandrunner / @neverlandrunner

12/06/2020 at 02:07PM

11
#246 - roudens / @roudens2

12/11/2020 at 12:39AM

11
#247 - John Doe / @JohnDoe75830353

12/24/2020 at 01:43AM

11
#248 - Ray Dennis / @raysden

12/24/2020 at 01:54PM

11
#249 - Jung Yeon Park / @park_jungy

01/04/2021 at 02:12PM

11
#250 - Björn Struckmeier / @BjrnStruckmeie1

01/07/2021 at 09:47AM

11
#251 - A A A / @37fatos

01/10/2021 at 05:56PM

11
#252 - Trong Kha Nguyen / @__ngtrongkha

01/13/2021 at 02:19AM

11
#253 - 김범준 / @kmbmjn

01/14/2021 at 05:21AM

11
#254 - 蔡徐坤真是爱吃屎 / @Hashub7

01/21/2021 at 01:57PM

12
#255 - Steffen Köhler / @Baertierchen

07/11/2015 at 10:54PM

12
#256 - SporadicLizard / @sporadiclizard

01/14/2018 at 08:10PM

12
#257 - Bart Reynolds / @bartums

03/01/2018 at 04:19AM

12
#258 - LC / @leeren

03/01/2018 at 09:13AM

12
#259 - matthew brett / @matthewbrett

03/26/2018 at 09:05AM

12
#260 - Pablo / @suspekt007

04/07/2018 at 09:30AM

12
#261 - Daniël De Koker / @daniel_koker

06/05/2018 at 03:47PM

12
#262 - niwatoco / @yoshitune9

07/19/2018 at 01:32AM

12
#263 - Ruby Sapphire / @RubySapphire20

12/15/2018 at 02:56AM

12
#264 - unclewangshushu / @shuwushu

12/29/2018 at 11:51AM

12
#265 - お-せ-よ- / @OhSayYo

03/05/2019 at 06:42AM

12
#266 - Tim Dean / @Tmdean

06/06/2019 at 07:14PM

12
#267 - Neil Struthers / @struthersneil

07/17/2019 at 04:01PM

12
#268 - leo / @leo28356948

10/23/2019 at 01:09PM

12
#269 - Lory / @Lory46845742

11/01/2019 at 01:22PM

12
#270 - floyd / @floyd10086

03/10/2020 at 04:24AM