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 54862fbb3f90ac0002904cf5

Just the middle

Delete the instructions at the top and bottom.

Start file
Leave only the
numbered lines.
LINE 1
LINE 2
LINE 3
That's all.
Thank you
very much.
End file
LINE 1
LINE 2
LINE 3

View Diff

1,2d0
< Leave only the
< numbered lines.
6,8d3
< That's all.
< Thank you
< very much.

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 3877 remaining solutions by signing in and submitting your own entry
#3878 휘람 / @Brandhwi_0129 - Score: 120 - 06/29/18 @ 08:34
sdj<Down><Right><Left><Down><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>ZZ<BS><BS><Esc>ZZ

@saurabh908583: sdj -- dj make sense it deletes the top 2 lines for me but if I s press sdj it does 'Leave only the' >>>> 'djave only the' ... how did you do it? do you have key map

1 comment


Created by: @udioica

3878 active golfers, 10467 entries

Leaderboard (lowest score wins):
7
#1141 - bluemartian / @bluemartianz59

08/19/2018 at 12:30AM

7
#1142 - Roberto Martínez / @nilp0inter

08/26/2018 at 09:25PM

7
#1143 - Manuel Oswald / @_maoswald

09/02/2018 at 02:30PM

7
#1144 - Epecb / @BceEpecb

09/04/2018 at 06:44PM

7
#1145 - a / @a05150445

09/06/2018 at 03:30AM

7
#1146 - Jeff / @sir_wiggles3

09/07/2018 at 08:05AM

7
#1147 - DustVoice / @DustVoice

09/10/2018 at 10:16AM

7
#1148 - ようかん / @youkan_puyo

09/13/2018 at 03:58PM

7
#1149 - royer / @RoyerMoyer1

09/14/2018 at 10:32PM

7
#1150 - Ketan Agrawal / @_ketan0_

09/24/2018 at 04:12PM

7
#1151 - Pico / @Elarique_Swift

09/26/2018 at 07:49PM

7
#1152 - DoubleIA / @IaDouble

09/30/2018 at 10:16AM

7
#1153 - a / @UseForVim

10/03/2018 at 08:12PM

7
#1154 - Will / @VVi11_I_AM

10/04/2018 at 12:35AM

7
#1155 - Tuomas Jokioja / @TJokioja

10/10/2018 at 02:44PM

7
#1156 - Benjamin Kiesl / @BenjaminKiesl

10/11/2018 at 09:47AM

7
#1157 - Alejandro Santander / @_ajsantander

10/14/2018 at 05:39PM

7
#1158 - Ole Mussmann / @isbjornlabs

10/28/2018 at 09:45AM

7
#1159 - jyloup / @jyloup

11/02/2018 at 06:33PM

7
#1160 - i33 / @i3342th

11/06/2018 at 07:14AM

7
#1161 - Fabio Branquinho / @branquif

11/07/2018 at 05:06PM

7
#1162 - Nir Givon / @nir_givon

11/11/2018 at 12:16PM

7
#1163 - Parker Couch / @couch_parker

11/12/2018 at 05:45PM

7
#1164 - dogmeat / @dogmeat11

11/14/2018 at 03:35PM

7
#1165 - name / @name65894813

11/14/2018 at 04:57PM

7
#1166 - 905garlicjack / @905garlicjack

11/16/2018 at 02:15PM

7
#1167 - zaperrer / @zaperrer

11/17/2018 at 12:29AM

7
#1168 - 永森 / @nagk05

11/17/2018 at 07:08AM

7
#1169 - Sören Schellhoff / @Jackokomm

11/19/2018 at 04:11PM

7
#1170 - Dax / @zacoxi

11/20/2018 at 01:24AM