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

1046 active golfers, 4571 entries

Leaderboard (lowest score wins):
36
#1021 - Pierre Houssin / @PierreHoussin

12/16/2014 at 08:38PM

36
#1022 - Chanaka Sandaruwan / @ch4n4k4

12/24/2014 at 11:58AM

36
#1023 - Lydia Cupery / @LCupery

12/02/2018 at 08:15PM

37
#1024 - Antonio Murdaca / @runc0m

01/17/2015 at 09:49PM

38
#1025 - marcusmichaely / @marcus_michaely

02/08/2015 at 01:16AM

38
#1026 - Hee Jun Yi / @junyihjy

04/02/2015 at 01:27AM

38
#1027 - BitLad / @BitLad

01/30/2018 at 07:44PM

38
#1028 - The Joe / @computerjoe708

03/20/2019 at 11:13PM

39
#1029 - Pyankova Julia / @yulya3102

11/09/2014 at 12:06PM

39
#1030 - Simon Ingelsson / @_DeVVaN_

08/15/2018 at 02:17PM

39
#1031 - Fabio Branquinho / @branquif

11/08/2018 at 02:56PM

41
#1032 - Jason Spafford / @JasonSpafford

05/22/2015 at 06:00PM

41
#1033 - Samir Sadek / @netsamir

07/17/2015 at 09:48PM

41
#1034 - 王有铭 / @coder_ming

01/18/2018 at 01:57PM

42
#1035 - Bernard Wolff / @bernard_wolff

11/26/2014 at 08:34PM

42
#1036 - Ilker Mutlu / @ilkermutlu

04/01/2015 at 02:34PM

42
#1037 - ooJava / @GitCheckout

08/17/2015 at 12:47AM

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

03/28/2015 at 12:11PM

44
#1039 - Jurica / @Jurica34581259

11/15/2018 at 12:07AM

46
#1040 - Paul The Danish / @PaulTheDanish

11/08/2014 at 07:32PM

46
#1041 - David Gustavsson / @mrGustaphe

06/08/2017 at 08:23PM

46
#1042 - yaarrr / @v0lko

03/18/2019 at 01:58PM

50
#1043 - Cleberson Gomes / @Cleber_son

08/19/2018 at 08:34PM

55
#1044 - sam abtek / @samabtek1

08/04/2017 at 06:42PM

59
#1045 - MGJoe93 / @mgjoe93

03/03/2019 at 07:45AM

66
#1046 - Dominic Z / @thammaaa

12/21/2017 at 12:59PM