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

1118 active golfers, 4923 entries

Leaderboard (lowest score wins):
21
#811 - Jonathan Camilleri / @Too_Many_Taken

05/24/2018 at 01:14PM

21
#812 - 김예지 / @8PjPnQfmHR2caqM

06/29/2018 at 08:41AM

21
#813 - fucus / @fishlovebanana

07/31/2018 at 07:54AM

21
#814 - 无眠的夜狐狸 / @fox_ni

08/16/2018 at 01:47PM

21
#815 - Brent Woo / @BrentPWoo

10/05/2018 at 08:38PM

21
#816 - Dax / @daaawx

10/24/2018 at 09:59PM

21
#817 - Dave Brda / @BrdaDave

10/25/2018 at 09:45PM

21
#818 - 永森 / @nagk05

12/07/2018 at 07:57AM

21
#819 - Jasper Pangilinan / @JasperP

12/27/2018 at 12:21PM

21
#820 - Stefano Bettani / @StefanoBettani

01/19/2019 at 04:32PM

21
#821 - churaki / @churaki

01/25/2019 at 10:45PM

21
#822 - alexandrasou / @alexandrasou2

05/22/2019 at 01:27PM

21
#823 - JonasS / @jonas42s

05/30/2019 at 01:37PM

21
#824 - albalitz / @_albalitz

06/03/2019 at 01:57PM

21
#825 - Kjaku / @Kondziorf

09/07/2019 at 09:20PM

21
#826 - grace / @grcekh

01/06/2020 at 07:05AM

22
#827 - いっこつ / @eZb4

02/11/2015 at 03:35PM

22
#828 - Yuan Guan / @yuanguan89

03/02/2015 at 04:47AM

22
#829 - Pedro Franceschi / @pedroh96

04/08/2015 at 06:47PM

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

06/02/2015 at 06:51PM

22
#831 - Chris / @crr0004

06/29/2015 at 11:42AM

22
#832 - Markus / @I__Markus__I

08/31/2015 at 09:03PM

22
#833 - emblox / @emblox

11/19/2015 at 10:51PM

22
#834 - Li Nuo / @li_nuo

12/10/2015 at 04:02PM

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

02/06/2016 at 02:01AM

22
#836 - Tj / @yrddy

02/19/2016 at 05:40AM

22
#837 - Andres Araya / @arayaandresfco

05/24/2016 at 12:32PM

22
#838 - André Peric Tavares / @andre_peric

07/20/2016 at 07:59PM

22
#839 - Constantine / @ConstantineHatz

09/16/2016 at 04:51AM

22
#840 - 20speedvegan / @ashkevinm

04/11/2017 at 09:06PM