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 1268 remaining solutions by signing in and submitting your own entry
#1269 boumediane1 / @boumediane1 - Score: 72 - 01/09/25 @ 22:34
<C-V>Glr10u<C-V>jjjjjlr<Esc>s10<Esc><Esc>hjklhvl<C-V>jjjjjojg<C-A><Esc>u<C-V>jjjjojg<C-A><Esc>ukk<C-V>jjjjjojg<C-A><Esc><Esc>:wa<CR>:q<CR>

0 comments


Created by: @udioica

1269 active golfers, 5683 entries

Leaderboard (lowest score wins):
11
#31 - TaoChen / @632143592Tao

06/17/2016 at 03:52AM

11
#32 - Jacob Niehus / @wilywampa

06/20/2016 at 04:15AM

11
#33 - Kerson Hsiao / @KersonHsiao

06/22/2016 at 09:15AM

11
#34 - Alonzo / @tolver_a

07/22/2016 at 02:35PM

11
#35 - Stanislav / @prstad

08/24/2016 at 08:37AM

11
#36 - Stephen Aument / @saument

09/01/2016 at 03:38PM

11
#37 - jdupont655 / @jdupont655

09/02/2016 at 12:33AM

11
#38 - Krzysztof Borkowski / @smiechowy

09/03/2016 at 08:03PM

11
#39 - loki2441 / @loki2441

09/05/2016 at 01:16PM

11
#40 - hor1ace / @hor3ace

09/07/2016 at 10:37PM

11
#41 - Nico / @_Nico_Caro

09/26/2016 at 05:07AM

11
#42 - poke / @useraaaaaaaaaaf

10/05/2016 at 02:09PM

11
#43 - trx / @trxdbg

10/11/2016 at 06:21AM

11
#44 - Nikos Kwlos / @Kwlos_Calling

10/16/2016 at 10:29AM

11
#45 - Bill Ruddock / @biinari

10/31/2016 at 02:22AM

11
#46 - Davis Fields / @i301585

11/04/2016 at 04:03AM

11
#47 - vim golf wolfe / @vimwolfe

11/06/2016 at 12:07AM

11
#48 - i1464083 / @i1464083

11/18/2016 at 01:14PM

11
#49 - Nessig / @Nessig5

12/18/2016 at 11:07AM

11
#50 - Douglas Roper / @dougdroper

12/19/2016 at 12:36PM

11
#51 - Abc Def / @phweiss1

01/04/2017 at 01:03PM

11
#52 - Patrick Sanan / @patricksanan

01/08/2017 at 06:57PM

11
#53 - Social Botolinum / @SocialBot4

01/21/2017 at 05:45PM

11
#54 - Zhihong Liu / @pieapple03

02/06/2017 at 01:54PM

11
#55 - Tim Grebien / @tiggg

02/21/2017 at 02:13PM

11
#56 - sijinyuan / @sijinyuan

02/22/2017 at 01:25AM

11
#57 - Daniel Hjelm / @dhjelm

03/15/2017 at 09:40AM

11
#58 - Ilya Shakirov / @aelaau

03/20/2017 at 09:09AM

11
#59 - Andreas Anderbach / @anderbacha

03/20/2017 at 03:25PM

11
#60 - Shashwat Raghuvanshi / @Shashwat_sr123

03/26/2017 at 02:41PM