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 by @g_usermod:

Unlock 1 remaining solutions by signing in and submitting your own entry
Created by: @pftb12345

69 active golfers, 126 entries

Solutions by @g_usermod:
16
#41 - George Angelopoulos / @g_usermod

08/05/2016 at 02:40PM