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 4d1aaf2fb11838287d000036

Reverse characters in a line

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

Start file
abcdefghijklmnopqrstuvwxyz
End file
zyxwvutsrqponmlkjihgfedcba

View Diff

--- in	2010-12-28 19:41:39.000000000 -0800
+++ out	2010-12-28 19:41:59.000000000 -0800
@@ -1 +1 @@
-abcdefghijklmnopqrstuvwxyz
+zyxwvutsrqponmlkjihgfedcba

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 227 remaining solutions by signing in and submitting your own entry
#228 Ricardo Mendes / @locks - Score: 194 - 12/30/10 @ 01:54
xpjhxplllllllllllllllllllllllxphhx$phhhx$phhhhx$phhhhhx$phhhhhhx$p7j7hx$p8hx$p9hx$p10hx$p11j11hx$10pup12hx$p13hx$p14hx$p15hx$p16hx$p17hx$p18hx$p19hx$p20hx$p21hx$p22hx$p23hx$p24hx$p25hx$p<Esc>:wq<CR>

0 comments


Created by: @josh_triplett

228 active golfers, 618 entries

Leaderboard (lowest score wins):
13
#61 - Jon Krause / @jkrause314

01/12/2016 at 06:32PM

13
#62 - Ryan Dwyer / @ryan_dwyer

06/06/2016 at 03:22AM

13
#63 - Ben Hill / @KaizenSoze70

06/10/2016 at 06:18PM

13
#64 - tPenguinLTG / @tpenguinltg

01/02/2017 at 01:21AM

13
#65 - BarbaJol / @drpproteus

01/10/2018 at 05:04PM

13
#66 - Paul Draghicescu / @pdragy

03/23/2018 at 02:58AM

13
#67 - DHM / @DHM29978992

05/01/2018 at 02:45AM

13
#68 - Mihai / @mihaicristiant

02/23/2019 at 06:19PM

13
#69 - Daniel Steinberg / @dstein64

03/31/2019 at 11:31PM

13
#70 - Nolen Royalty / @NolenRoyalty

05/15/2019 at 03:26AM

13
#71 - Filipe Brandenburger / @filbranden

07/08/2019 at 12:42AM

13
#72 - vimRunnerUp3000 / @VUp3000

09/02/2019 at 06:10PM

13
#73 - Lory / @Lory46845742

12/10/2019 at 07:56AM

14
#74 - Henrik Nyh / @henrik

12/29/2010 at 05:40PM

14
#75 - Thedward the Edward / @thedward

01/01/2011 at 07:14AM

14
#76 - Israel Chauca F. / @Raimondi

01/01/2011 at 09:57PM

14
#77 - Hu Junfeng / @junfeng

07/17/2011 at 10:08AM

14
#78 - Woojung Kim 김우중 / @_kimwz

07/17/2013 at 03:33AM

14
#79 - amodo / @siskin

07/29/2013 at 09:14PM

14
#80 - Steve Tjoa / @stevetjoa

08/09/2013 at 02:39AM

14
#81 - Jonathan Kim / @jonnykim

08/27/2013 at 06:58PM

14
#82 - Dario Avitabile / @tutticapaci

09/01/2014 at 10:36AM

14
#83 - TheProgrammer971 / @tp971

03/14/2015 at 11:06PM

14
#84 - 朱国栋 / @GuodongZhu

03/17/2016 at 08:09PM

14
#85 - Miłosz Łakomy / @foobar01123

02/19/2020 at 10:06AM

15
#86 - Andrew Scala / @agscala

12/29/2010 at 06:09AM

15
#87 - Ben C / @cben

12/29/2010 at 07:15AM

15
#88 - foo bar / @whoever_foo

12/29/2010 at 07:25AM

15
#89 - johnny / @johnnychm

12/29/2010 at 01:11PM

15
#90 - Mikel Ward / @mikelward

12/30/2010 at 12:52PM