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
#751 - Pratap Koritala / @pratap_koritala

02/29/2016 at 06:40AM

21
#752 - Chenut Ludovic / @7Brwa7

04/01/2016 at 08:28AM

21
#753 - f00b8tr / @f00b8tr5

05/23/2016 at 04:45AM

21
#754 - Rein Van Imschoot / @reinvanimschoot

06/16/2016 at 09:20PM

21
#755 - Dan Madden / @guthran

07/15/2016 at 02:29PM

21
#756 - Ryan van Rensburg / @rdvr001

07/18/2016 at 06:05PM

21
#757 - Richard Laub / @RWLaub91

08/21/2016 at 06:41AM

21
#758 - TweetDreams / @TweetMusicians

10/08/2016 at 06:31PM

21
#759 - Matti Sairanen / @MattiSairanen

11/15/2016 at 07:19PM

21
#760 - Sergio / @voyeg3r

11/24/2016 at 11:25AM

21
#761 - alkozu / @alkozu

12/01/2016 at 04:46PM

21
#762 - Kritixi Lithos / @kritixilithos

03/02/2017 at 07:51PM

21
#763 - Whossname / @BuzzaTyson

04/30/2017 at 08:43AM

21
#764 - Fox Wilson / @FoxWilson42

05/06/2017 at 03:09AM

21
#765 - Codingpotato / @codingpotato

05/07/2017 at 09:39AM

21
#766 - Jenny Johnson / @Kippz07

05/11/2017 at 11:29AM

21
#767 - jakeroberts / @jakeroberts

05/16/2017 at 01:44PM

21
#768 - Will Gunther / @WillGunther

06/11/2017 at 08:21PM

21
#769 - Cary Goltermann / @CaryGoltermann

09/25/2017 at 12:02AM

21
#770 - Geoff / @RealGeoffErwin

09/29/2017 at 01:12PM

21
#771 - Le Lycal / @LeLycal

10/05/2017 at 10:50AM

21
#772 - Jacob Tailor / @spydronex

02/06/2018 at 08:40PM

21
#773 - Михаил Фуфин / @MishaFufin

04/11/2018 at 02:39PM

21
#774 - Jonathan Camilleri / @Too_Many_Taken

05/24/2018 at 01:14PM

21
#775 - 김예지 / @8PjPnQfmHR2caqM

06/29/2018 at 08:41AM

21
#776 - fucus / @fishlovebanana

07/31/2018 at 07:54AM

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

08/16/2018 at 01:47PM

21
#778 - Brent Woo / @BrentPWoo

10/05/2018 at 08:38PM

21
#779 - Dax / @daaawx

10/24/2018 at 09:59PM

21
#780 - Dave Brda / @BrdaDave

10/25/2018 at 09:45PM