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

4215 active golfers, 11497 entries

Leaderboard (lowest score wins):
8
#1831 - Clark DuVall / @theclarkatron

05/19/2015 at 05:40PM

8
#1832 - Austin Anderson / @ProtractorNinja

05/20/2015 at 09:14PM

8
#1833 - Emily / @EmilyDbv

05/21/2015 at 12:13AM

8
#1834 - Joel Gallant / @joelg236

05/22/2015 at 12:20AM

8
#1835 - Mateusz / @foobar98765

05/22/2015 at 02:48PM

8
#1836 - Mauro Persano / @fzort

05/23/2015 at 03:39PM

8
#1837 - Personal Life Trackr / @PersLifeTrackr

05/24/2015 at 08:22AM

8
#1838 - Tony Zou / @uint16_t

05/24/2015 at 08:56PM

8
#1839 - aaron w / @twyeAaron

05/24/2015 at 11:25PM

8
#1840 - Bruce Woodward / @Bruce_Woodward

05/25/2015 at 09:14PM

8
#1841 - Emanuele Rusconi / @emarsk

05/26/2015 at 08:58PM

8
#1842 - Tom / @BureaucratGr11

05/27/2015 at 08:28PM

8
#1843 - Koding TV / @kodinglive

05/27/2015 at 09:21PM

8
#1844 - David Rogers / @al_the_x

05/27/2015 at 09:23PM

8
#1845 - Javier Soto / @sotoseattle

05/28/2015 at 04:39PM

8
#1846 - Lucien Baron / @Luci1B

05/28/2015 at 08:01PM

8
#1847 - Sid Momin / @mominsid

05/28/2015 at 10:06PM

8
#1848 - Adetque / @Adetque

05/29/2015 at 07:35AM

8
#1849 - Jesus Martinez / @JesusMGR

05/29/2015 at 02:06PM

8
#1850 - Joakim Hansen / @gnofs

05/29/2015 at 03:08PM

8
#1851 - ___ / @jdemici

05/29/2015 at 06:20PM

8
#1852 - Eduardo Antunes / @ecsousa

05/30/2015 at 03:10AM

8
#1853 - Sailesh Mittal / @saileshmittal

05/31/2015 at 02:56AM

8
#1854 - Alexander / @mostofmystuff

05/31/2015 at 07:02PM

8
#1855 - Aurélien Deharbe / @0x_ad

06/01/2015 at 12:50PM

8
#1856 - Rob Wise / @RobAWise

06/01/2015 at 10:49PM

8
#1857 - Sir Chauffeur / @sebdul

06/02/2015 at 01:46PM

8
#1858 - antew / @antewcode

06/03/2015 at 01:55AM

8
#1859 - Alexis Luengas / @lexluengas

06/04/2015 at 07:31PM

8
#1860 - Eldar Yusupov / @EldarYusupov

06/04/2015 at 08:28PM