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

1074 active golfers, 4690 entries

Leaderboard (lowest score wins):
23
#901 - Šimon Mandlík / @simon_mandlik

06/29/2018 at 04:09PM

23
#902 - Gareth Miller / @CTingCTer

07/24/2018 at 08:09AM

23
#903 - Sxcy / @SxcyX

10/24/2018 at 09:23AM

23
#904 - PJ Frazer / @pj_frazer

11/22/2018 at 03:03AM

23
#905 - Oren Koriat / @KoriatOren

12/07/2018 at 09:14PM

23
#906 - Groovy / @groovy9

03/07/2019 at 10:09PM

23
#907 - Anthony Catterwell / @ACatterwell

03/11/2019 at 12:37AM

23
#908 - cubemike / @cubemike

03/25/2019 at 02:26PM

23
#909 - Laurent Atlan / @laurentatlan1

04/15/2019 at 10:16PM

23
#910 - Daniel Hakimian / @danrafhak

05/16/2019 at 12:50AM

23
#911 - せいほう / @FICSQF

07/03/2019 at 11:41AM

23
#912 - mirsemen / @mirsemen1

07/15/2019 at 10:10AM

23
#913 - Bob Ren / @bobrenjc93

08/19/2019 at 05:28PM

23
#914 - Chris Shorrock / @EbinFlow

08/22/2019 at 02:32PM

24
#915 - Lieven Keersmaekers / @LievenKeersmaek

11/05/2014 at 03:28PM

24
#916 - Jan Novak / @odpadnimail

11/18/2014 at 09:43PM

24
#917 - Edmundo Perez / @ingedmundo

12/03/2014 at 03:12AM

24
#918 - AZ / @lazywithclass

12/05/2014 at 08:54AM

24
#919 - gbin / @gbin

12/12/2014 at 06:46AM

24
#920 - Lunar Mayor / @Lunarmayor

12/18/2014 at 02:37PM

24
#921 - r. / @rmarvie

12/19/2014 at 09:57AM

24
#922 - Jordan Alexander / @HappppyPerson

12/24/2014 at 06:17PM

24
#923 - 曾鹏文 / @ZengPengWen

12/27/2014 at 11:39AM

24
#924 - Pomin Wu / @pm5

12/31/2014 at 07:44AM

24
#925 - zealotrush / @zealotrush

01/14/2015 at 05:32AM

24
#926 - Jason Nesbitt / @compilejason

01/16/2015 at 08:22PM

24
#927 - Will Nicht / @kein_name_fuer

01/24/2015 at 11:51PM

24
#928 - Sri Kadimisetty / @sri

02/11/2015 at 01:59AM

24
#929 - Arturo Volpe / @CochoVolpe

02/25/2015 at 02:39AM

24
#930 - paulfariello ✏️ / @paulfariello

02/25/2015 at 04:55PM