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

1215 active golfers, 5389 entries

Leaderboard (lowest score wins):
21
#901 - g̵̨̛̺̝̮̋͆̅͝r̶̦͗̐̓̉a̵͉͋̎c̵̺͉̉͝e̴͙̘͎͚̹̳͛̀͂͆̂ / @___grce

01/06/2020 at 07:05AM

21
#902 - dule2607 / @dule26071

05/01/2020 at 08:32AM

21
#903 - Yannick / @Yannick88147038

06/14/2020 at 08:13AM

21
#904 - majo senf / @majo_senf

07/14/2020 at 09:16AM

21
#905 - Kaustubh Murumkar / @k_austub_h

08/31/2020 at 06:53PM

21
#906 - Andrew McKinlay / @ihavethecon

09/14/2020 at 07:55AM

21
#907 - Filipe Barroso 💙 / @ABarroso

12/01/2020 at 10:33PM

22
#908 - いっこつ / @eZb4

02/11/2015 at 03:35PM

22
#909 - Yuan Guan / @yuanguan89

03/02/2015 at 04:47AM

22
#910 - Pedro Franceschi / @pedroh96

04/08/2015 at 06:47PM

22
#911 - ɹǝsnɐɥsıʇnɹ uoɾ / @JonRutis

06/02/2015 at 06:51PM

22
#912 - Chris / @crr0004

06/29/2015 at 11:42AM

22
#913 - Markus / @I__Markus__I

08/31/2015 at 09:03PM

22
#914 - emblox / @emblox

11/19/2015 at 10:51PM

22
#915 - Li Nuo / @li_nuo

12/10/2015 at 04:02PM

22
#916 - E.O. Stinson / @yostinso

02/06/2016 at 02:01AM

22
#917 - Tj / @yrddy

02/19/2016 at 05:40AM

22
#918 - Andres Araya / @arayaandresfco

05/24/2016 at 12:32PM

22
#919 - André Peric Tavares / @andre_peric

07/20/2016 at 07:59PM

22
#920 - Constantine / @ConstantineHatz

09/16/2016 at 04:51AM

22
#921 - 20speedvegan / @ashkevinm

04/11/2017 at 09:06PM

22
#922 - Paul Sonkoly / @Phaul

08/16/2017 at 05:30PM

22
#923 - Marcin Paliwoda / @eukaliptuss

08/25/2017 at 02:32PM

22
#924 - Michael D Jones / @biotechjones

02/09/2018 at 09:58PM

22
#925 - Akilan Anbalagan / @akilananb

03/26/2018 at 04:40PM

22
#926 - Alex Budilovsky / @alexbudy

05/02/2018 at 01:59AM

22
#927 - Korgan / @Korgan36725554

08/26/2018 at 05:03AM

22
#928 - Stefan Heyder / @Astheny_

09/17/2018 at 12:01PM

22
#929 - João Silva / @joaosilva155

03/08/2019 at 02:11PM

22
#930 - her / @her35520005

04/11/2019 at 06:39PM