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

1030 active golfers, 4508 entries

Leaderboard (lowest score wins):
11
#31 - Ameen P / @Ameen_P1

06/08/2016 at 04:18AM

11
#32 - TaoChen / @632143592Tao

06/17/2016 at 03:52AM

11
#33 - Jacob Niehus / @wilywampa

06/20/2016 at 04:15AM

11
#34 - Kerson Hsiao / @KersonHsiao

06/22/2016 at 09:15AM

11
#35 - Alonzo / @tolver_a

07/22/2016 at 02:35PM

11
#36 - Stanislav / @prstad

08/24/2016 at 08:37AM

11
#37 - Stephen Aument / @saument

09/01/2016 at 03:38PM

11
#38 - jdupont655 / @jdupont655

09/02/2016 at 12:33AM

11
#39 - Krzysztof Borkowski / @smiechowy

09/03/2016 at 08:03PM

11
#40 - loki2441 / @loki2441

09/05/2016 at 01:16PM

11
#41 - hor1ace / @hor3ace

09/07/2016 at 10:37PM

11
#42 - Nico / @_Nico_Caro

09/26/2016 at 05:07AM

11
#43 - poke / @useraaaaaaaaaaf

10/05/2016 at 02:09PM

11
#44 - trx / @trxdbg

10/11/2016 at 06:21AM

11
#45 - Nikos Kwlos / @Kwlos_Calling

10/16/2016 at 10:29AM

11
#46 - Bill Ruddock / @biinari

10/31/2016 at 02:22AM

11
#47 - Davis Fields / @i301585

11/04/2016 at 04:03AM

11
#48 - vim golf wolfe / @vimwolfe

11/06/2016 at 12:07AM

11
#49 - i1464083 / @i1464083

11/18/2016 at 01:14PM

11
#50 - Nessig / @Nessig5

12/18/2016 at 11:07AM

11
#51 - Douglas Roper / @dougdroper

12/19/2016 at 12:36PM

11
#52 - Abc Def / @phweiss1

01/04/2017 at 01:03PM

11
#53 - Patrick Sanan / @patricksanan

01/08/2017 at 06:57PM

11
#54 - Social Botolinum / @SocialBot4

01/21/2017 at 05:45PM

11
#55 - Zhihong Liu / @pieapple03

02/06/2017 at 01:52PM

11
#56 - Tim Grebien / @tiggg

02/21/2017 at 02:13PM

11
#57 - sijinyuan / @sijinyuan

02/22/2017 at 01:25AM

11
#58 - Daniel Hjelm / @dhjelm

03/15/2017 at 09:40AM

11
#59 - Ilya Shakirov / @aelaau

03/20/2017 at 09:09AM

11
#60 - Andreas Anderbach / @anderbacha

03/20/2017 at 03:25PM