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

1072 active golfers, 4682 entries

Leaderboard (lowest score wins):
21
#781 - 永森 / @nagakei05

12/07/2018 at 07:57AM

21
#782 - Jasper Pangilinan / @JasperP

12/27/2018 at 12:21PM

21
#783 - Stefano Bettani / @StefanoBettani

01/19/2019 at 04:32PM

21
#784 - churaki / @churaki

01/25/2019 at 10:45PM

21
#785 - alexandrasou / @alexandrasou2

05/22/2019 at 01:27PM

21
#786 - JonasS / @jonas42s

05/30/2019 at 01:37PM

21
#787 - albalitz / @_albalitz

06/03/2019 at 01:57PM

21
#788 - Kjaku / @Kondziorf

09/07/2019 at 09:20PM

22
#789 - いっこつ / @eZb4

02/11/2015 at 03:35PM

22
#790 - Yuan Guan / @yuanguan89

03/02/2015 at 04:47AM

22
#791 - Pedro Franceschi / @pedroh96

04/08/2015 at 06:47PM

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

06/02/2015 at 06:51PM

22
#793 - Chris / @crr0004

06/29/2015 at 11:42AM

22
#794 - Markus / @I__Markus__I

08/31/2015 at 09:03PM

22
#795 - emblox / @emblox

11/19/2015 at 10:51PM

22
#796 - Li Nuo / @li_nuo

12/10/2015 at 04:02PM

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

02/06/2016 at 02:01AM

22
#798 - Tj / @yrddy

02/19/2016 at 05:40AM

22
#799 - Andres Araya / @arayaandresfco

05/24/2016 at 12:32PM

22
#800 - André Peric Tavares / @andre_peric

07/20/2016 at 07:59PM

22
#801 - Constantine / @ConstantineHatz

09/16/2016 at 04:51AM

22
#802 - 20speedvegan / @ashkevinm

04/11/2017 at 09:06PM

22
#803 - Paul Sonkoly / @Phaul

08/16/2017 at 05:30PM

22
#804 - Marcin Paliwoda / @eukaliptuss

08/25/2017 at 02:32PM

22
#805 - Michael D Jones / @biotechjones

02/09/2018 at 09:58PM

22
#806 - Akilan Anbalagan / @akilananb

03/26/2018 at 04:40PM

22
#807 - Alex Budilovsky / @alexbudy

05/02/2018 at 01:59AM

22
#808 - Korgan / @Korgan36725554

08/26/2018 at 05:03AM

22
#809 - Stefan Heyder / @Astheny_

09/17/2018 at 12:01PM

22
#810 - João Silva / @joaosilva155

03/08/2019 at 02:11PM