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
#271 - NuM / @NuM314

10/24/2015 at 05:59AM

14
#272 - Peter / @sunirbmag

10/25/2015 at 03:54PM

14
#273 - Jacob Steffler / @jacobsteffler

10/26/2015 at 04:26AM

14
#274 - Nam Net / @tafopigibi

10/26/2015 at 04:34PM

14
#275 - Ben Harris / @bharrisau

11/01/2015 at 08:23AM

14
#276 - Julien Grenier / @juliengrenier

11/02/2015 at 03:24PM

14
#277 - David Mauskop / @mauskop

11/12/2015 at 08:22PM

14
#278 - ハチポケッツ / @8pockets

11/24/2015 at 12:35AM

14
#279 - Darius Smaliukas / @daraz999

11/27/2015 at 07:12PM

14
#280 - Faat / @i_faat

12/04/2015 at 04:32PM

14
#281 - Jiahan Wang / @hijiahanwang123

12/10/2015 at 12:26AM

14
#282 - Charlie / @wookie_giant

12/20/2015 at 05:37PM

14
#283 - Izabel Jelenić / @IzabelJelenic

12/22/2015 at 11:26AM

14
#284 - Bingyunx / @bingyunx

12/26/2015 at 01:22AM

14
#285 - Saki Gw / @Sakigw

01/05/2016 at 08:17PM

14
#286 - Sebastian Nickel / @tumblingwhimsy

01/06/2016 at 07:46PM

14
#287 - Strabs / @artistavenue

01/08/2016 at 02:42PM

14
#288 - retro / @tryphopp

01/12/2016 at 03:18AM

14
#289 - Aleksey Zhidkov / @AlexeyZhidkov

01/15/2016 at 12:08PM

14
#290 - John Smith / @literacyisgood

02/11/2016 at 03:07AM

14
#291 - Janine Cheng / @janineist

02/13/2016 at 07:10AM

14
#292 - Michael Buckley / @apolatg

02/13/2016 at 07:04PM

14
#293 - ben kavanagh / @bkava

02/18/2016 at 07:28PM

14
#294 - Robert Mosher / @rcmosher

02/22/2016 at 06:15PM

14
#295 - Rubén Chavarría T. / @rchavarriat

03/03/2016 at 08:16AM

14
#296 - Dimitar Dimitrov / @kurkale6ka

03/08/2016 at 04:22PM

14
#297 - Jan Bundesmann / @janbundesmann

03/10/2016 at 03:24PM

14
#298 - Yahyalexandre33 / @yahyalexandre33

03/15/2016 at 02:08AM

14
#299 - Jonathan Taylor / @Jonyonson

03/20/2016 at 04:17PM

14
#300 - Robber Toe / @robbertoe

04/02/2016 at 02:51PM