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 67 remaining solutions by signing in and submitting your own entry
#68 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


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

69 active golfers, 126 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

16
#48 - RockerZZY / @rocker_zzy

09/06/2020 at 03:22AM

16
#49 - Miłosz Łakomy / @foobar01123

09/24/2020 at 10:07AM

16
#50 - quemeraisc / @quemeraisc

05/23/2022 at 02:58PM

16
#51 - russellzhaomao / @russellzhaomao

06/15/2022 at 11:26AM

16
#52 - Olivier Bégassat / @zk_evm

06/14/2023 at 04:02PM

16
#53 - ndaval / @ndaval

01/16/2024 at 08:53PM

16
#54 - Berel94 / @Berel94

03/17/2024 at 01:56PM

16
#55 - constap / @constap

05/20/2024 at 09:51PM

16
#56 - Peppa Pig / @PeppaPigSg

07/03/2024 at 01:47AM

16
#57 - nickGPT / @nickandbro

08/28/2024 at 04:10AM

17
#58 - ushumpei / @ushumpei_

06/05/2015 at 12:35PM

17
#59 - d;-) / @pedrobearer

07/13/2015 at 07:26PM

18
#60 - Johan Adriaans / @JohanAdriaans

06/02/2015 at 10:01AM