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

1198 active golfers, 5320 entries

Leaderboard (lowest score wins):
17
#541 - Harsh Kumar / @datsleepyguy

06/28/2017 at 06:32PM

17
#542 - Martin Pedersen / @M4R7iNP

12/29/2017 at 04:19PM

17
#543 - oceanarium / @oceanarium1

02/24/2018 at 02:23PM

17
#544 - towc / @MateiCopot

04/02/2018 at 08:25PM

17
#545 - Cosmic Frog / @Cozmicfrog

05/24/2018 at 08:16AM

17
#546 - Plexigras / @plexigras

06/02/2018 at 07:49PM

17
#547 - Kris Ezra / @kris_ezra

06/20/2018 at 03:02AM

17
#548 - Gemille Ford / @gemilleford

07/02/2018 at 05:04PM

17
#549 - Puj / @MrPuj

07/09/2018 at 03:12PM

17
#550 - yqu212 / @yqu212

07/27/2018 at 07:30AM

17
#551 - Jeff / @sir_wiggles3

09/07/2018 at 08:42PM

17
#552 - Sören Schellhoff / @Jackokomm

11/21/2018 at 01:19PM

17
#553 - diwa / @Di_nate_

11/23/2018 at 06:22AM

17
#554 - Performa / @performa6400

11/29/2018 at 04:55PM

17
#555 - Timur Celik / @clktmr

12/21/2018 at 01:01PM

17
#556 - Zach Miller / @barizachsy

02/27/2019 at 04:32AM

17
#557 - royaso / @royaso

04/13/2019 at 02:24PM

17
#558 - たぬぽん / @eJYwMbymauWKF4B

06/11/2019 at 02:12PM

17
#559 - Simon Zeng / @KronicMan

06/15/2019 at 05:23PM

17
#560 - Matt Vaughn / @mattttvaughn

07/29/2019 at 04:54AM

17
#561 - theBecwar / @thebecwar

08/19/2019 at 12:24PM

17
#562 - TimMcGuire / @mcguire

10/25/2019 at 02:46AM

17
#563 - Jason Neylon / @jasonneylon

01/01/2020 at 04:50PM

17
#564 - perTheGolfer / @GolferPer

05/22/2020 at 10:27AM

17
#565 - C++くん(元店長) / @_shop_one

06/17/2020 at 05:13AM

17
#566 - ms / @ms78270444

11/05/2020 at 11:21PM

18
#567 - mnx / @mnxx

11/05/2014 at 04:37PM

18
#568 - Harold Pong / @har2po

11/06/2014 at 02:54PM

18
#569 - deris / @deris0126

11/06/2014 at 04:03PM

18
#570 - Michi Loro / @michiloro

11/10/2014 at 08:03AM