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):
39
#961 - Pyankova Julia / @yulya3102

11/09/2014 at 12:06PM

39
#962 - Simon Ingelsson / @_DeVVaN_

08/15/2018 at 02:17PM

39
#963 - Fabio Branquinho / @branquif

11/08/2018 at 02:56PM

41
#964 - Jason Spafford / @JasonSpafford

05/22/2015 at 06:00PM

41
#965 - Samir Sadek / @netsamir

07/17/2015 at 09:48PM

41
#966 - 王有铭 / @coder_ming

01/18/2018 at 01:57PM

42
#967 - Bernard Wolff / @bernard_wolff

11/26/2014 at 08:34PM

42
#968 - Ilker Mutlu / @ilkermutlu

04/01/2015 at 02:34PM

42
#969 - ooJava / @GitCheckout

08/17/2015 at 12:47AM

44
#970 - ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ / @subbucoding

03/28/2015 at 12:11PM

44
#971 - Jurica / @Jurica34581259

11/15/2018 at 12:07AM

46
#972 - Paul The Danish / @PaulTheDanish

11/08/2014 at 07:32PM

46
#973 - David Gustavsson / @mrGustaphe

06/08/2017 at 08:23PM

50
#974 - Cleberson Gomes / @Cleber_son

08/19/2018 at 08:34PM

55
#975 - sam abtek / @samabtek1

08/04/2017 at 06:42PM

66
#976 - Dominic Z / @thammaaa

12/21/2017 at 12:59PM