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

1099 active golfers, 4854 entries

Leaderboard (lowest score wins):
39
#1081 - Pyankova Julia / @yulya3102

11/09/2014 at 12:06PM

39
#1082 - Simon Ingelsson / @_DeVVaN_

08/15/2018 at 02:17PM

39
#1083 - Fabio Branquinho / @branquif

11/08/2018 at 02:56PM

39
#1084 - Vim Golfer / @VimGolfer6

07/25/2019 at 01:08PM

41
#1085 - Jason Spafford / @JasonSpafford

05/22/2015 at 06:00PM

41
#1086 - Samir Sadek / @netsamir

07/17/2015 at 09:48PM

41
#1087 - 王有铭 / @coder_ming

01/18/2018 at 01:57PM

42
#1088 - Bernard Wolff / @bernard_wolff

11/26/2014 at 08:34PM

42
#1089 - Ilker Mutlu / @ilkermutlu

04/01/2015 at 02:34PM

42
#1090 - ooJava / @GitCheckout

08/17/2015 at 12:47AM

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

03/28/2015 at 12:11PM

44
#1092 - Jurica / @Jurica34581259

11/15/2018 at 12:07AM

46
#1093 - Paul The Danish / @PaulTheDanish

11/08/2014 at 07:32PM

46
#1094 - David Gustavsson / @mrGustaphe

06/08/2017 at 08:23PM

46
#1095 - yaarrr / @v0lko

03/18/2019 at 01:58PM

50
#1096 - Cleberson Gomes / @Cleber_son

08/19/2018 at 08:34PM

55
#1097 - sam abtek / @samabtek1

08/04/2017 at 06:42PM

59
#1098 - MGJoe93 / @mgjoe93

03/03/2019 at 07:45AM

66
#1099 - Dominic Z / @thammaaa

12/21/2017 at 12:59PM