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

1052 active golfers, 4579 entries

Leaderboard (lowest score wins):
22
#781 - Li Nuo / @li_nuo

12/10/2015 at 04:02PM

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

02/06/2016 at 02:01AM

22
#783 - Tj / @yrddy

02/19/2016 at 05:40AM

22
#784 - Andres Araya / @arayaandresfco

05/24/2016 at 12:32PM

22
#785 - André Peric Tavares / @andre_peric

07/20/2016 at 07:59PM

22
#786 - Constantine / @ConstantineHatz

09/16/2016 at 04:51AM

22
#787 - 20speedvegan / @ashkevinm

04/11/2017 at 09:06PM

22
#788 - Paul Sonkoly / @Phaul

08/16/2017 at 05:30PM

22
#789 - Marcin Paliwoda / @eukaliptuss

08/25/2017 at 02:32PM

22
#790 - Michael D Jones / @biotechjones

02/09/2018 at 09:58PM

22
#791 - Akilan Anbalagan / @akilananb

03/26/2018 at 04:40PM

22
#792 - Alex Budilovsky / @alexbudy

05/02/2018 at 01:59AM

22
#793 - Korgan / @Korgan36725554

08/26/2018 at 05:03AM

22
#794 - Stefan Heyder / @Astheny_

09/17/2018 at 12:01PM

22
#795 - João Silva / @joaosilva155

03/08/2019 at 02:11PM

22
#796 - her / @her35520005

04/11/2019 at 06:39PM

22
#797 - りょ / @ryoo141

05/10/2019 at 12:19PM

23
#798 - Andrew Richards / @drwrchrds

11/05/2014 at 12:57AM

23
#799 - kungfuchad / @kungfuchad

11/05/2014 at 06:32PM

23
#800 - Cody Callahan / @imnicuhtine

11/06/2014 at 06:33AM

23
#801 - Nate R / @80vs90

11/11/2014 at 08:35PM

23
#802 - Thomas Geßler / @th_gessler

11/16/2014 at 11:42AM

23
#803 - Rathrio / @Rathrio

11/17/2014 at 09:31AM

23
#804 - Frederik Vosberg / @FrediVosberg

12/07/2014 at 04:31PM

23
#805 - Tom Reznick / @threznick

12/10/2014 at 07:50PM

23
#806 - Raphael / @rnstlr

12/12/2014 at 05:00PM

23
#807 - Kentaro Wakayama / @wakayamakentaro

12/16/2014 at 03:30PM

23
#808 - Koji Wakayama / @wakayamakoji

12/16/2014 at 03:46PM

23
#809 - Edward Brown / @ChazKato

12/16/2014 at 08:02PM

23
#810 - Christopher Yudichak / @TheOddLinguist

12/24/2014 at 07:54PM