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 556d7209f6d1a10ee6000001

swap or reverse

Try to swap or reverse the line as needed.

Start file
abcdefghijklmn
End file
abcdefghijklmn
bcdefghijklmna
cdefghijklmnba
defghijklmncba
efghijklmndcba
fghijklmnedcba
ghijklmnfedcba
hijklmngfedcba
ijklmnhgfedcba
jklmnihgfedcba
klmnjihgfedcba
lmnkjihgfedcba
mnlkjihgfedcba
nmlkjihgfedcba

View Diff

1a2,14
> bcdefghijklmna
> cdefghijklmnba
> defghijklmncba
> efghijklmndcba
> fghijklmnedcba
> ghijklmnfedcba
> hijklmngfedcba
> ijklmnhgfedcba
> jklmnihgfedcba
> klmnjihgfedcba
> lmnkjihgfedcba
> mnlkjihgfedcba
> nmlkjihgfedcba

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 44 remaining solutions by signing in and submitting your own entry
#45 ushumpei / ushumpei_ - Score: 17 - 06/05/15 @ 12:35
qayypxfnpq12@apZZ

0 comments

#46 d;-) / pedrobearer - Score: 17 - 07/13/15 @ 19:26
qqyyp<Del>fnpq12@qpZZ

0 comments

#47 Johan Adriaans / JohanAdriaans - Score: 18 - 06/02/15 @ 10:01
qqYpxfnpq12@qam<Esc>ZZ

0 comments

#48 Adrien Fabre / statox42 - Score: 18 - 06/04/15 @ 20:45
qqYpxfnpq12@qam<Esc>ZZ

0 comments

#49 Gerald Tilma / GeraldTilma - Score: 18 - 10/21/15 @ 01:54
qqYpxfnpq12@qam<Esc>ZZ

0 comments

#50 Assaf Lavie / AssafLavie - Score: 19 - 06/09/15 @ 20:08
qqyypxfnpq12@qam<Esc>ZZ

0 comments

#51 Gurukandhamoorthi / Gurukandhamoor1 - Score: 20 - 09/01/17 @ 15:16
qqYpxfnp0q22@Qlim<Esc>ZZ

0 comments

#52 Edgard Leal / EdgardLeal - Score: 21 - 06/03/15 @ 19:37
qqYpxlfnpq12@qpYpxpZZ

0 comments

#53 Drew Newell / drewnewell - Score: 24 - 06/24/15 @ 18:33
qqyypxfnpq12@qim<BS><Right>m<Esc>:wq<CR>

0 comments

#54 Matthieu Crapet / mcr05 - Score: 32 - 06/13/15 @ 09:32
qxxpqU@='Yp13@x'<CR>qq@=<C-F>-<C-X><CR>q11@qZZ

mcr05: I wanted badly this @=<C-F> :P

1 comment

#55 Grisha Pushkov / readoonly - Score: 32 - 06/16/15 @ 10:56
yypx$p"pylqqyypx/<C-R>p<CR>P"pylq11@qZZ

0 comments

Created by: pftb12345

55 active golfers, 84 entries

Leaderboard (lowest score wins):
16
#1 - kungfuchad / kungfuchad

06/02/2015 at 10:48AM

16
#2 - Tom van der Lee / TomVdLee

06/02/2015 at 10:51AM

16
#3 - Sir Chauffeur / sebdul

06/02/2015 at 10:55AM

16
#4 - Marijn van Vliet / wmvanvliet

06/02/2015 at 12:38PM

16
#5 - Tim Chase / gumnos

06/02/2015 at 01:08PM

16
#6 - John Braxler / braxler

06/02/2015 at 01:14PM

16
#7 - Strabs / artistavenue

06/02/2015 at 01:53PM

16
#8 - Louis Caruana / louiecaruana

06/02/2015 at 03:06PM

16
#9 - Smylers / Smylers2

06/02/2015 at 04:29PM

16
#10 - Evan Coleman / edc1591

06/02/2015 at 04:54PM

16
#11 - Urtica dioica / udioica

06/02/2015 at 06:56PM

16
#12 - Garrett Heaver / garrettheaver

06/02/2015 at 07:04PM

16
#13 - Javier Rizzo / javierrizzoa

06/03/2015 at 04:01AM

16
#14 - John Smith / literacyisgood

06/03/2015 at 04:51AM

16
#15 - David Stensland / DavidStensland

06/03/2015 at 07:17AM

16
#16 - Petro Тrouq / zulolosi

06/04/2015 at 03:34AM

16
#17 - Kevin Knox / kevinrknox

06/04/2015 at 01:46PM

16
#18 - Sam Cristall / sbcristall

06/04/2015 at 08:44PM

16
#19 - Victor Haffreingue / nobe_4

06/04/2015 at 08:49PM

16
#20 - Haoyang Feng / HHAribai

06/05/2015 at 06:35AM

16
#21 - Steve Bitner / fourbitbots

06/05/2015 at 05:46PM

16
#22 - Wlad / wladston

06/05/2015 at 07:49PM

16
#23 - Thomas McGinniss / thom_bomb75

06/11/2015 at 07:13PM

16
#24 - James Pringle / mathbyjames

06/11/2015 at 08:50PM

16
#25 - Mutter Mumble / muttermumble

06/18/2015 at 07:58PM

16
#26 - raghu erapaneedi / raghue9

06/19/2015 at 01:37PM

16
#27 - Elizabeth / sprinkles418

06/19/2015 at 04:44PM

16
#28 - Maxime / Maxime_VII

06/23/2015 at 02:27PM

16
#29 - Lifepillar / lifepillar

06/23/2015 at 06:56PM

16
#30 - Clark DuVall / theclarkatron

06/25/2015 at 07:57PM

16
#31 - Skúli Jóhannsson / skulibj

06/26/2015 at 12:56AM

16
#32 - Jan Wirth / FranzSkuffka

06/29/2015 at 10:00AM

16
#33 - LCD 47 / lcd047

08/02/2015 at 08:45PM

16
#34 - S.Lebedev / drasgo

08/28/2015 at 10:51PM

16
#35 - Joey / joeyism101

09/11/2015 at 03:01AM

16
#36 - Sean Hill / insecteanSean

10/03/2015 at 05:24AM

16
#37 - Walker Boh / walker_boh

10/12/2015 at 12:32PM

16
#38 - Robert Goeddel / f0rdpr3fect

11/13/2015 at 07:43PM

16
#39 - Jon Krause / jkrause314

01/15/2016 at 05:40PM

16
#40 - Thijs van den Anker / thijsvdanker

02/15/2016 at 06:51PM

16
#41 - George Angelopoulos / g_usermod

08/05/2016 at 02:40PM

16
#42 - Stanislav / prstad

09/14/2016 at 10:39AM

16
#43 - Jorge / jherreso

07/27/2017 at 03:15AM

16
#44 - Bradley M. Small / BradleySmall

11/23/2017 at 04:47AM

17
#45 - ushumpei / ushumpei_

06/05/2015 at 12:35PM

17
#46 - d;-) / pedrobearer

07/13/2015 at 07:26PM

18
#47 - Johan Adriaans / JohanAdriaans

06/02/2015 at 10:01AM

18
#48 - Adrien Fabre / statox42

06/04/2015 at 08:45PM

18
#49 - Gerald Tilma / GeraldTilma

10/21/2015 at 01:54AM

19
#50 - Assaf Lavie / AssafLavie

06/09/2015 at 08:08PM

20
#51 - Gurukandhamoorthi / Gurukandhamoor1

09/01/2017 at 03:16PM

21
#52 - Edgard Leal / EdgardLeal

06/03/2015 at 07:37PM

24
#53 - Drew Newell / drewnewell

06/24/2015 at 06:33PM

32
#54 - Matthieu Crapet / mcr05

06/13/2015 at 09:32AM

32
#55 - Grisha Pushkov / readoonly

06/16/2015 at 10:56AM