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

4216 active golfers, 11500 entries

Leaderboard (lowest score wins):
8
#1891 - Mike DeBruyn / @djroot2

07/03/2015 at 01:56AM

8
#1892 - Cakejoke / @Cakejoke

07/05/2015 at 02:39PM

8
#1893 - Teemu Okkonen / @TeemuOkkonen

07/06/2015 at 09:09AM

8
#1894 - Paul Schaefer / @schaeferpp

07/06/2015 at 09:10AM

8
#1895 - Luke Ellis / @slav0x

07/09/2015 at 12:47PM

8
#1896 - Elite Hacker of the Light / @L3E7

07/12/2015 at 10:27PM

8
#1897 - vimgolf / @myspare307

07/15/2015 at 11:12PM

8
#1898 - Crystal Qian / @cjqian

07/16/2015 at 05:32PM

8
#1899 - Kyle Fuller / @kylefuller

07/17/2015 at 01:53AM

8
#1900 - James Hudon / @jrbhudon

07/17/2015 at 04:55AM

8
#1901 - aze / @aze_rg

07/20/2015 at 05:52AM

8
#1902 - Antti A / @anttia

07/22/2015 at 11:22AM

8
#1903 - Marin Usalj / @_supermarin

07/22/2015 at 06:32PM

8
#1904 - Delisa / @kattrali

07/22/2015 at 07:14PM

8
#1905 - walkingsparrow / @walkingsparrow

07/22/2015 at 10:11PM

8
#1906 - Alexey Kotov / @atercat

07/23/2015 at 11:47AM

8
#1907 - fantome / @fantome84

07/23/2015 at 02:38PM

8
#1908 - Kanon Kubose / @Flurrywinde

07/24/2015 at 02:15AM

8
#1909 - darookee / @darookee

07/24/2015 at 09:17AM

8
#1910 - Olik / @oli33k

07/24/2015 at 01:05PM

8
#1911 - Test / @goodbyetest1248

07/24/2015 at 03:06PM

8
#1912 - Jason Schulz / @uxcn_

07/25/2015 at 06:13AM

8
#1913 - Thibaut Marty / @ThibautM_

07/25/2015 at 09:05AM

8
#1914 - Andreas Schlegel / @andischl

07/25/2015 at 06:08PM

8
#1915 - David da Silva / @dasilvacontin

07/26/2015 at 04:56PM

8
#1916 - Partial SHA1 hash / @25fcag9e

07/27/2015 at 02:34PM

8
#1917 - Brian Gapinski / @Xechas

07/28/2015 at 07:17PM

8
#1918 - Peter B / @l0wm4x

07/28/2015 at 09:25PM

8
#1919 - martl / @martl

07/29/2015 at 08:24PM

8
#1920 - aisapatino / @aisapatino

07/30/2015 at 04:52AM