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

1229 active golfers, 5444 entries

Leaderboard (lowest score wins):
21
#901 - 无眠的夜狐狸 / @fox_ni

08/16/2018 at 01:47PM

21
#902 - Brent Woo / @BrentPWoo

10/05/2018 at 08:38PM

21
#903 - Dax / @daaawx

10/24/2018 at 09:59PM

21
#904 - Dave Brda / @BrdaDave

10/25/2018 at 09:45PM

21
#905 - 永森 / @nagk05

12/07/2018 at 07:57AM

21
#906 - Jasper Pangilinan / @JasperP

12/27/2018 at 12:21PM

21
#907 - Stefano Bettani / @StefanoBettani

01/19/2019 at 04:32PM

21
#908 - churaki / @churaki

01/25/2019 at 10:45PM

21
#909 - alexandrasou / @alexandrasou2

05/22/2019 at 01:27PM

21
#910 - JonasS / @jonas42s

05/30/2019 at 01:37PM

21
#911 - albalitz / @_albalitz

06/03/2019 at 01:57PM

21
#912 - Kjaku / @Kondziorf

09/07/2019 at 09:20PM

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

01/06/2020 at 07:05AM

21
#914 - dule2607 / @dule26071

05/01/2020 at 08:32AM

21
#915 - Yannick / @Yannick88147038

06/14/2020 at 08:13AM

21
#916 - majo senf / @majo_senf

07/14/2020 at 09:16AM

21
#917 - Kaustubh Murumkar / @k_austub_h

08/31/2020 at 06:53PM

21
#918 - Andrew McKinlay / @ihavethecon

09/14/2020 at 07:55AM

21
#919 - Filipe 💙 / @ABarroso

12/01/2020 at 10:33PM

22
#920 - いっこつ / @eZb4

02/11/2015 at 03:35PM

22
#921 - Yuan Guan / @yuanguan89

03/02/2015 at 04:47AM

22
#922 - Pedro Franceschi / @pedroh96

04/08/2015 at 06:47PM

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

06/02/2015 at 06:51PM

22
#924 - Chris / @crr0004

06/29/2015 at 11:42AM

22
#925 - Markus / @I__Markus__I

08/31/2015 at 09:03PM

22
#926 - emblox / @emblox

11/19/2015 at 10:51PM

22
#927 - Li Nuo / @li_nuo

12/10/2015 at 04:02PM

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

02/06/2016 at 02:01AM

22
#929 - Tj / @yrddy

02/19/2016 at 05:40AM

22
#930 - Andres Araya / @arayaandresfco

05/24/2016 at 12:32PM