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

976 active golfers, 4195 entries

Leaderboard (lowest score wins):
14
#241 - Lifepillar / @lifepillar

06/15/2015 at 05:46AM

14
#242 - Noud Speijcken / @noudspeijcken

06/20/2015 at 06:55PM

14
#243 - Andres Manz / @manz_andres

06/24/2015 at 01:39PM

14
#244 - Skúli Jóhannsson / @skulibj

06/25/2015 at 11:15PM

14
#245 - Lindsay Swift / @_lindsai_

07/05/2015 at 12:49AM

14
#246 - Hunter Gatewood / @hcgatewood

07/28/2015 at 05:13AM

14
#247 - Peter B / @l0wm4x

08/01/2015 at 06:27PM

14
#248 - Reef / @Sir_Reef

08/05/2015 at 10:58PM

14
#249 - Veritas / @_VeritasL

08/13/2015 at 01:56PM

14
#250 - Nick Xiao / @nicoster

08/18/2015 at 02:31PM

14
#251 - David Perfors / @dnperfors

08/20/2015 at 08:36PM

14
#252 - Paulo Romeira / @pauloromeira

08/21/2015 at 03:47PM

14
#253 - JS / @jjohsan

08/23/2015 at 09:00AM

14
#254 - Dennis Burke / @ikirudennis

08/27/2015 at 06:22PM

14
#255 - T A / @SirAviles

08/30/2015 at 02:59PM

14
#256 - oscar / @zonza_mas

09/02/2015 at 02:03PM

14
#257 - Restroom Sounds / @RestroomSounds

09/06/2015 at 07:02PM

14
#258 - Joey / @joeyism101

09/12/2015 at 12:24AM

14
#259 - Obviouscator / @obviouscator

09/17/2015 at 11:48AM

14
#260 - Kevin Merlin / @mp3merlin

09/17/2015 at 02:23PM

14
#261 - Victor Kasatkin / @vikasatkin

09/20/2015 at 09:36PM

14
#262 - Thomas Draper / @QuanTom561

09/26/2015 at 12:56AM

14
#263 - Self Doc Code / @self_doc_code

09/28/2015 at 05:39AM

14
#264 - 이 철희 / @leechulhee95

10/02/2015 at 09:38AM

14
#265 - compuserved / @compuserved

10/04/2015 at 05:09AM

14
#266 - ojung / @oskrjung

10/04/2015 at 10:28PM

14
#267 - Smylers / @Smylers2

10/08/2015 at 03:37PM

14
#268 - Perry van Schaijk / @PvSchaijk

10/09/2015 at 11:40AM

14
#269 - 朱国栋 / @GuodongZhu

10/15/2015 at 03:33AM

14
#270 - Steve Bitner / @fourbitbots

10/21/2015 at 02:36AM