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 3870 remaining solutions by signing in and submitting your own entry
#3871 휘람 / @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

3871 active golfers, 10444 entries

Leaderboard (lowest score wins):
7
#1261 - Bob Ren / @bobrenjc93

07/31/2019 at 08:23PM

7
#1262 - Ron Holt / @ron_holt

08/03/2019 at 09:02AM

7
#1263 - りんご / @ringo9971

08/06/2019 at 09:15AM

7
#1264 - James Raubenheimer / @jamzrob

08/06/2019 at 08:32PM

7
#1265 - majestic sloth / @SamLlama

08/08/2019 at 05:43AM

7
#1266 - Hayden Wang / @HaydenWang2

08/09/2019 at 01:46AM

7
#1267 - George Sofianos / @GeoSofianos

08/15/2019 at 12:51PM

7
#1268 - XiaoXiaoLui / @XiaoXiaoLui1

08/15/2019 at 02:40PM

7
#1269 - Fritz Inf / @6360info

08/17/2019 at 09:14AM

7
#1270 - Adam Hartz / @awareofnow

08/18/2019 at 04:41AM

7
#1271 - Eirik Furuseth / @heplaphon

08/21/2019 at 03:09PM

7
#1272 - Wistan Chou / @wisty97

08/21/2019 at 08:47PM

7
#1273 - David Johnston / @nuts4nuts4nuts

08/24/2019 at 07:53AM

7
#1274 - Marco Mannucci / @markomannux

08/24/2019 at 10:38AM

7
#1275 - Maxime Turquetil / @maturquetil

08/28/2019 at 09:53AM

7
#1276 - Andrew Blokzyl / @linuxKd

08/29/2019 at 09:13PM

7
#1277 - Adam Katz / @AdamKat01277576

09/02/2019 at 12:43PM

7
#1278 - blub / @agorilladriving

09/02/2019 at 01:34PM

7
#1279 - Vim Player / @PlayerVim

09/08/2019 at 12:42PM

7
#1280 - Andac Safa / @SanDForcE94

09/11/2019 at 10:57PM

7
#1281 - Cassandra / @kascein

09/17/2019 at 07:54AM

7
#1282 - Viktor Styrud / @ViktorStyrud

09/24/2019 at 06:59AM

7
#1283 - Brandon Harrison / @llAboutB

09/24/2019 at 04:31PM

7
#1284 - Adrian Craciun / @adi_craciun

09/27/2019 at 05:25PM

7
#1285 - Thomas Edlich / @grumpybavarian

09/27/2019 at 08:03PM

7
#1286 - vimgolfer / @vimgolfer7

09/28/2019 at 02:31PM

7
#1287 - Jake Nixon / @thejakenixon

09/29/2019 at 05:14AM

7
#1288 - Serpentri / @Serpentri1

10/01/2019 at 05:39PM

7
#1289 - Chen-Hung Wu / @utah12005

10/04/2019 at 08:18PM

7
#1290 - IronTiger Park / @IrontigerP

10/06/2019 at 07:01AM