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):
19
#781 - Jianfeng / @Jianfen22425058

01/28/2021 at 01:39PM

19
#782 - James / @Dronak

10/24/2022 at 01:43AM

20
#783 - Elcio Ferreira / @elcio

11/05/2014 at 12:12AM

20
#784 - xarmux / @xarmux

11/05/2014 at 10:32PM

20
#785 - Henning Perl / @henningperl

11/17/2014 at 10:13AM

20
#786 - Soren Bjornstad / @scorchgeek

12/04/2014 at 10:04PM

20
#787 - ゆきみ / @edp02

12/21/2014 at 08:17AM

20
#788 - kawas / @kawas44

01/01/2015 at 04:18PM

20
#789 - Zull Full / @Zullfull

01/15/2015 at 08:13AM

20
#790 - Moritz Schüpp / @moritzschuepp

01/21/2015 at 01:17PM

20
#791 - James Pringle / @mathbyjames

02/13/2015 at 09:27PM

20
#792 - ushumpei / @ushumpei_

04/07/2015 at 11:39AM

20
#793 - Tim Vail / @timdvail

08/05/2015 at 06:56PM

20
#794 - lukaskrieger / @lukaskrieger

08/07/2015 at 01:24PM

20
#795 - Paulo H Baumann / @PauloBaumann

10/05/2015 at 04:30PM

20
#796 - Ali Moeeny MD PhD / @alimoeeny

10/21/2015 at 11:48AM

20
#797 - LordFoom / @LordFoom

10/22/2015 at 02:45PM

20
#798 - Ethan Stewart / @EthanS279

12/23/2015 at 09:40PM

20
#799 - [onion] chesse / @onion_chesse

03/29/2016 at 12:33AM

20
#800 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 01:21PM

20
#801 - lilach adir / @leelaRed

03/31/2016 at 11:47AM

20
#802 - niels aamloos / @AamloosNiels

05/28/2016 at 02:57PM

20
#803 - Paweł Smołka / @pawelsmolka

06/15/2016 at 11:45AM

20
#804 - David Devecsery / @devecsery

06/22/2016 at 08:11PM

20
#805 - Netrisk Cool / @C00lt0

09/29/2016 at 09:36PM

20
#806 - Hlynur / @HlynDiezel

12/12/2016 at 10:53PM

20
#807 - Alexey Filonenko / @BrightOne_LS

01/07/2017 at 10:50PM

20
#808 - Cù Hữu Hoàng / @Cuhuuhoang

02/14/2017 at 03:15PM

20
#809 - caplod / @caplod

03/25/2017 at 10:24AM

20
#810 - Hans Yelek / @hans_yelek

04/22/2017 at 08:48AM