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

1220 active golfers, 5405 entries

Leaderboard (lowest score wins):
19
#721 - malet / @Malet

06/23/2016 at 02:28PM

19
#722 - Nikita Danilov / @Mirt_ru

07/17/2016 at 09:17AM

19
#723 - Antoni Villalonga / @friki

08/18/2016 at 02:39AM

19
#724 - Lozovaya Elizaveta / @Lozoveta

10/26/2016 at 08:34AM

19
#725 - Wessel Sinnema / @wsinnema

11/26/2016 at 08:49PM

19
#726 - Matt Walsh / @wattmalsh

02/03/2017 at 06:34PM

19
#727 - Dan Prince / @danj_prince

02/25/2017 at 01:34AM

19
#728 - xwle / @xwle

03/12/2017 at 04:21AM

19
#729 - Simon Cheng / @bambooraccoon

01/19/2018 at 07:41PM

19
#730 - Adam Townsend / @despendesigns

01/29/2018 at 09:30AM

19
#731 - h3is3nd3rp / @h3is3nd3rp

08/02/2018 at 12:37PM

19
#732 - TW / @tangw

11/18/2018 at 04:15PM

19
#733 - Levi Self / @LeviRSelf

11/18/2018 at 10:08PM

19
#734 - James Gillies / @jw_gillies

11/24/2018 at 05:12PM

19
#735 - Bennett / @bennettbackward

12/19/2018 at 03:15AM

19
#736 - Harsha B C / @Harsha1306_

02/06/2019 at 11:23PM

19
#737 - Phoon / @justflashhim

05/13/2019 at 12:39AM

19
#738 - Vitaly Sinilin / @unterwulf

05/28/2019 at 08:57PM

19
#739 - vicver09 / @vicver091

10/29/2019 at 05:47PM

19
#740 - Braintwister / @Braintwister13

02/02/2020 at 09:05PM

19
#741 - Pham Tuan Anh / @anhpt379

02/17/2020 at 05:06AM

19
#742 - L Z / @unidevel

07/07/2020 at 02:17PM

19
#743 - Christ / @Christ46234422

09/09/2020 at 08:25AM

19
#744 - Ifeoluwa Lawal / @IfeLawl

10/06/2020 at 04:10PM

19
#745 - Jianfeng / @Jianfen22425058

01/28/2021 at 01:39PM

20
#746 - Elcio Ferreira / @elcio

11/05/2014 at 12:12AM

20
#747 - xarmux / @xarmux

11/05/2014 at 10:32PM

20
#748 - James / @Dronak

11/06/2014 at 04:23AM

20
#749 - Henning Perl / @henningperl

11/17/2014 at 10:13AM

20
#750 - Soren Bjornstad / @scorchgeek

12/04/2014 at 10:04PM