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

1227 active golfers, 5430 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 - 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

11
#255 - pikjes / @pikjes2

07/16/2021 at 06:57PM

11
#256 - Jean George / @JeanGeo20504212

09/11/2021 at 09:52AM

11
#257 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 12:36AM

11
#258 - ._. / @Katharsic

04/25/2022 at 06:16AM

11
#259 - x03n046 / @x03n046

05/16/2022 at 07:45AM

11
#260 - russellzhaomao / @russellzhaomao

05/26/2022 at 08:22AM

12
#261 - Steffen Köhler / @Baertierchen

07/11/2015 at 10:54PM

12
#262 - SporadicLizard / @sporadiclizard

01/14/2018 at 08:10PM

12
#263 - Bart Reynolds / @bartums

03/01/2018 at 04:19AM

12
#264 - LC / @leeren

03/01/2018 at 09:13AM

12
#265 - matthew brett / @matthewbrett

03/26/2018 at 09:05AM

12
#266 - Pablo / @suspekt007

04/07/2018 at 09:30AM

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

06/05/2018 at 03:47PM

12
#268 - niwatoco / @yoshitune9

07/19/2018 at 01:32AM

12
#269 - Ruby Sapphire / @RubySapphire20

12/15/2018 at 02:56AM

12
#270 - unclewangshushu / @shuwushu

12/29/2018 at 11:51AM