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):
8
#1771 - Cakejoke / @Cakejoke

07/05/2015 at 02:39PM

8
#1772 - Teemu Okkonen / @TeemuOkkonen

07/06/2015 at 09:09AM

8
#1773 - Paul Schaefer / @schaeferpp

07/06/2015 at 09:10AM

8
#1774 - Luke Ellis / @slav0x

07/09/2015 at 12:47PM

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

07/12/2015 at 10:27PM

8
#1776 - vimgolf / @myspare307

07/15/2015 at 11:12PM

8
#1777 - Crystal Qian / @cjqian

07/16/2015 at 05:32PM

8
#1778 - Kyle Fuller / @kylefuller

07/17/2015 at 01:53AM

8
#1779 - James Hudon / @jrbhudon

07/17/2015 at 04:55AM

8
#1780 - aze / @aze_rg

07/20/2015 at 05:52AM

8
#1781 - Antti A / @anttia

07/22/2015 at 11:22AM

8
#1782 - Marin Usalj / @_supermarin

07/22/2015 at 06:32PM

8
#1783 - Delisa / @kattrali

07/22/2015 at 07:14PM

8
#1784 - walkingsparrow / @walkingsparrow

07/22/2015 at 10:11PM

8
#1785 - Alexey Kotov / @atercat

07/23/2015 at 11:47AM

8
#1786 - fantome / @fantome84

07/23/2015 at 02:38PM

8
#1787 - Kanon Kubose / @Flurrywinde

07/24/2015 at 02:15AM

8
#1788 - darookee / @darookee

07/24/2015 at 09:17AM

8
#1789 - Olik / @oli33k

07/24/2015 at 01:05PM

8
#1790 - Test / @goodbyetest1248

07/24/2015 at 03:06PM

8
#1791 - Jason Schulz / @uxcn_

07/25/2015 at 06:13AM

8
#1792 - Thibaut Marty / @ThibautM_

07/25/2015 at 09:05AM

8
#1793 - Andreas Schlegel / @andischl

07/25/2015 at 06:08PM

8
#1794 - David da Silva / @dasilvacontin

07/26/2015 at 04:56PM

8
#1795 - Partial SHA1 hash / @25fcag9e

07/27/2015 at 02:34PM

8
#1796 - Brian Gapinski / @Xechas

07/28/2015 at 07:17PM

8
#1797 - Peter B / @l0wm4x

07/28/2015 at 09:25PM

8
#1798 - martl / @martl

07/29/2015 at 08:24PM

8
#1799 - aisapatino / @aisapatino

07/30/2015 at 04:52AM

8
#1800 - Roben Kleene / @robenkleene

07/30/2015 at 08:19PM