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 @nickandbro:

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

69 active golfers, 126 entries

Solutions by @nickandbro:
16
#57 - nickGPT / @nickandbro

08/28/2024 at 04:10AM

17
#>59 - nickGPT / @nickandbro

08/28/2024 at 04:10AM

18
#>63 - nickGPT / @nickandbro

08/28/2024 at 04:10AM

19
#>64 - nickGPT / @nickandbro

08/28/2024 at 04:10AM

20
#>65 - nickGPT / @nickandbro

08/28/2024 at 04:10AM

21
#>66 - nickGPT / @nickandbro

08/28/2024 at 04:10AM

24
#>67 - nickGPT / @nickandbro

08/28/2024 at 04:10AM

32
#>69 - nickGPT / @nickandbro

08/28/2024 at 04:10AM