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

1099 active golfers, 4854 entries

Leaderboard (lowest score wins):
26
#1021 - Zak Greant / @zakgreant

08/07/2015 at 11:56AM

26
#1022 - Utkrisht Dhankar / @UtkrishtDhankar

09/07/2016 at 03:56PM

26
#1023 - Aurélien Hervé / @aurel_herve

04/19/2017 at 04:07PM

26
#1024 - Ryan Miller / @andRyanMiller

12/15/2017 at 07:16PM

26
#1025 - urandom / @ttyrandom

10/21/2018 at 03:46PM

26
#1026 - Noah Epstein / @NoahJEpstein

04/12/2019 at 08:39PM

26
#1027 - Billy / @Billy67965753

06/07/2019 at 05:30PM

26
#1028 - Timo Böhm / @TimoBohm

11/26/2019 at 06:58AM

27
#1029 - Bakhti Aripov / @bakhti

11/12/2014 at 11:27AM

27
#1030 - Michael Bruce / @mikepjb

11/16/2014 at 12:11AM

27
#1031 - Anil Kulkarni / @AnilRedshift

12/07/2014 at 12:31AM

27
#1032 - Jonas Ng / @jnshey

05/15/2015 at 03:43PM

27
#1033 - Harshavardhan Kittur / @hbk1517

09/22/2015 at 08:19PM

27
#1034 - Conor Ryan / @conorjryan

11/06/2015 at 11:45AM

27
#1035 - Benjamin Rausch / @DubbsSmacker44

12/04/2015 at 03:47AM

27
#1036 - Stephan Bugnon / @stephanbugnon

01/16/2017 at 05:45PM

27
#1037 - Gurukandhamoorthi / @Gurukandhamoor1

07/10/2017 at 10:21AM

28
#1038 - Cédric De Palm / @cedricpalm

11/11/2014 at 02:31PM

28
#1039 - javavim / @Javavim

11/11/2014 at 02:52PM

28
#1040 - Keyboard Fire / @KeyboardFire

11/22/2014 at 01:29PM

28
#1041 - limenghong / @LeoLpfish

12/03/2014 at 02:25AM

28
#1042 - supasnashbuhl / @supasnashbuhl

02/08/2015 at 01:10AM

28
#1043 - Nicola Girardi / @bruciasse

07/02/2015 at 02:31AM

28
#1044 - Mac Heller-Ogden / @twosoul

03/29/2016 at 10:10PM

28
#1045 - Aviram Alter / @onallion

08/11/2016 at 09:52AM

28
#1046 - Adi Ron / @notadiron

03/10/2017 at 03:55PM

28
#1047 - Robert Max Williams / @MaxPhurich

09/11/2017 at 10:40PM

28
#1048 - Paul Inc / @hiniol1982

07/27/2018 at 07:37PM

28
#1049 - Kevin Cooler / @KevinCooler

08/10/2018 at 04:22PM

28
#1050 - Aaron / @_Lordofthevoid_

11/24/2019 at 09:57AM