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
#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 / @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