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

1092 active golfers, 4829 entries

Leaderboard (lowest score wins):
23
#931 - Chris Shorrock / @EbinFlow

08/22/2019 at 02:32PM

23
#932 - huynhminhchu / @huynhminhchu

09/22/2019 at 06:29AM

24
#933 - Lieven Keersmaekers / @LievenKeersmaek

11/05/2014 at 03:28PM

24
#934 - Jan Novak / @odpadnimail

11/18/2014 at 09:43PM

24
#935 - Edmundo Perez / @ingedmundo

12/03/2014 at 03:12AM

24
#936 - AZ / @lazywithclass

12/05/2014 at 08:54AM

24
#937 - gbin / @gbin

12/12/2014 at 06:46AM

24
#938 - Lunar Mayor / @Lunarmayor

12/18/2014 at 02:37PM

24
#939 - r. / @rmarvie

12/19/2014 at 09:57AM

24
#940 - Jordan Alexander / @HappppyPerson

12/24/2014 at 06:17PM

24
#941 - 曾鹏文 / @ZengPengWen

12/27/2014 at 11:39AM

24
#942 - Pomin Wu / @pm5

12/31/2014 at 07:44AM

24
#943 - zealotrush / @zealotrush

01/14/2015 at 05:32AM

24
#944 - Jason Nesbitt / @compilejason

01/16/2015 at 08:22PM

24
#945 - Will Nicht / @kein_name_fuer

01/24/2015 at 11:51PM

24
#946 - Sri Kadimisetty / @sri

02/11/2015 at 01:59AM

24
#947 - Arturo Volpe / @CochoVolpe

02/25/2015 at 02:39AM

24
#948 - paulfariello ✏️ / @paulfariello

02/25/2015 at 04:55PM

24
#949 - Kenny / @zumalifeguard

03/09/2015 at 03:22PM

24
#950 - Mr Sim / @gavsim

03/19/2015 at 10:45PM

24
#951 - Nelson Senna / @nelson_senna

03/20/2015 at 06:16PM

24
#952 - Rob Milward / @RobMilward

04/09/2015 at 11:39PM

24
#953 - Martijn Theunissen / @Martijn_______

04/21/2015 at 06:12PM

24
#954 - Nathan / @vine77

05/15/2015 at 08:02AM

24
#955 - Tim Abramson / @timabramson

06/12/2015 at 07:44PM

24
#956 - Jon Featherstone / @feathj

06/21/2015 at 04:53AM

24
#957 - Alex Girdler / @zraved

06/30/2015 at 10:54PM

24
#958 - Teemu Okkonen / @TeemuOkkonen

07/06/2015 at 09:31PM

24
#959 - Zsolt Fekete / @feketezsolt

07/10/2015 at 07:14AM

24
#960 - Bucker Fuskyote / @MooglePower

07/12/2015 at 04:03AM