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 56 remaining solutions by signing in and submitting your own entry
#57 Matt / @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


#58 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

58 active golfers, 91 entries

Leaderboard (lowest score wins):
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

16
#45 - Turkey Man / @lvturkeyman

12/18/2017 at 08:43AM

16
#46 - Michael Buckley / @apolatg

01/23/2018 at 07:59PM

16
#47 - Martin Delille / @martinodelilo

09/01/2019 at 05:37PM

17
#48 - ushumpei / @ushumpei_

06/05/2015 at 12:35PM

17
#49 - d;-) / @pedrobearer

07/13/2015 at 07:26PM

18
#50 - Johan Adriaans / @JohanAdriaans

06/02/2015 at 10:01AM

18
#51 - Adrien Fabre / @statox42

06/04/2015 at 08:45PM

18
#52 - Gerald Tilma / @GeraldTilma

10/21/2015 at 01:54AM

19
#53 - we’re going to need a bigger bot / @assaflavie

06/09/2015 at 08:08PM

20
#54 - Gurukandhamoorthi / @Gurukandhamoor1

09/01/2017 at 03:16PM

21
#55 - Edgard Leal / @EdgardLeal

06/03/2015 at 07:37PM

24
#56 - Drew Newell / @drewnewell

06/24/2015 at 06:33PM

32
#57 - Matt / @mcr05

06/13/2015 at 09:32AM

32
#58 - Grisha Pushkov / @readoonly

06/16/2015 at 10:56AM