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

1032 active golfers, 4511 entries

Leaderboard (lowest score wins):
11
#121 - steph-query / @StephQuery

07/16/2018 at 06:00PM

11
#122 - Francesco Sacchi / @depsir

07/16/2018 at 08:39PM

11
#123 - qed / @qed13308565

07/24/2018 at 05:31PM

11
#124 - Andrew Peterson / @FungalRaincloud

07/27/2018 at 06:36AM

11
#125 - Rajesh Sharma / @deepredsky

07/29/2018 at 09:41PM

11
#126 - Artsiom Kashkou / @pochka15

07/31/2018 at 08:24AM

11
#127 - Jack Magnus / @jadomag

08/04/2018 at 08:18PM

11
#128 - O / @O34721877

08/08/2018 at 12:48AM

11
#129 - Fergus Longley / @FergusLongley

08/18/2018 at 06:31PM

11
#130 - Hugo / @szeyattai

08/19/2018 at 03:23PM

11
#131 - Coruja Queridinha / @miriamretka

08/21/2018 at 10:05PM

11
#132 - daniel / @daniel31464605

08/25/2018 at 06:33PM

11
#133 - Roberto Martínez / @nilp0inter

08/27/2018 at 09:46PM

11
#134 - Chi Jun / @jun13blu

08/28/2018 at 09:06AM

11
#135 - Brendan B Amdocs / @AmdocsB

09/26/2018 at 04:37PM

11
#136 - Rasmus Bergström / @JRasmusBm

09/27/2018 at 08:34AM

11
#137 - a / @UseForVim

10/06/2018 at 11:47AM

11
#138 - Benjamin Kiesl / @BenjaminKiesl

10/12/2018 at 11:45AM

11
#139 - ajs / @_ajsantander

10/14/2018 at 10:29PM

11
#140 - Dax / @zacoxi

10/19/2018 at 10:36AM

11
#141 - Nir Givon / @nir_givon

11/11/2018 at 02:15PM

11
#142 - name / @name65894813

11/15/2018 at 02:50PM

11
#143 - Wouter Horlings / @Achilleshiel

11/16/2018 at 11:37AM

11
#144 - Michael Rose / @mdroseDev

11/22/2018 at 04:07AM

11
#145 - Andreas Nordahl / @andreasnordahl

11/24/2018 at 07:31PM

11
#146 - timonegk / @timonegk

11/25/2018 at 03:06PM

11
#147 - Jonathan Cabezas / @John_Harkan

11/27/2018 at 11:56AM

11
#148 - Mihai / @mihaicristiant

11/30/2018 at 11:34AM

11
#149 - Ackman Syntax Error / @AckmanSux

12/24/2018 at 11:24AM

11
#150 - Sondre Lunde / @SondreSL

12/30/2018 at 10:51AM