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

Table Reshuffle

Fix the column order in this table... also append the new 'username' column.

Start file
smith,john,27
brown
,bob,35
jones
,steve,19
graham
,phil,44
End file
27,john,smith,jsmith
35,bob,brown,bbrown
19,steve,jones,sjones
44,phil,graham,pgraham

View Diff

1,4c1,4
< smith,john,27
< brown,bob,35
< jones,steve,19
< graham,phil,44
---
> 27,john,smith,jsmith
> 35,bob,brown,bbrown
> 19,steve,jones,sjones
> 44,phil,graham,pgraham

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 141 remaining solutions by signing in and submitting your own entry
#142 cracoucax / @cracoucax - Score: 354 - 12/30/10 @ 10:44
<Left><Down><Down><Down><Down><Up><Up><Up><Down><Down><Down><Down><Left><Left><Left><Left><Left><Left><Up><Up><Up>i<Left><Left><Left><Esc><Down><Down><Down><Down><Down><Up><Up><Up><Up><Up><Up><Up><Up>f,;<Right>D^^Pa,<Esc>Ajsmith<Esc>jbD^^Pa,<Esc>Abbron<BS>wn<Esc>jbD^^Pa,<Esc>Asjones<Esc><Up><Up><Up><Down><Down><Down>vbb<Esc><Esc><Right>D^^Pa,<Esc>Apgraham<Esc>bbbdb<Esc>udbxwlPxigrapham,<Esc><Up>bbdf,bbP<Up><Right>df,bbP<Up>w<Right>df,bbP<Down><Down><Down><Down><Up><Up><Up><Up><Down><Down><Down><Right><Right><Right><Right>x<Right><Right><Right><Right><Right><Right><Right><Right><Right>:w<CR>:wq<CR>

0 comments


Created by: @bjjwillis

142 active golfers, 439 entries

Leaderboard (lowest score wins):
23
#31 - Zion Park / @zionpark93

01/19/2023 at 09:26PM

23
#32 - nickGPT / @nickandbro

08/28/2024 at 11:50PM

23
#33 - bounce114 / @bounce114

12/04/2024 at 01:45PM

24
#34 - Wei Dai / @clvv42

01/01/2011 at 02:09PM

24
#35 - Ujjwol Lamichhane / @Ujjwol

01/06/2011 at 01:56PM

24
#36 - Hubba / @HubbaBubbaFett

12/26/2012 at 01:20PM

24
#37 - Yann Moisan / @YannMoisan

01/25/2013 at 03:47PM

24
#38 - Matt / @mcr05

03/06/2015 at 08:02PM

24
#39 - pftb12345 / @pftb12345

04/26/2015 at 12:28AM

24
#40 - Daniel / @Daniel00288663

04/06/2017 at 03:47PM

24
#41 - mevmev / @mevmev8

09/20/2021 at 10:34PM

26
#42 - Kerson Hsiao / @KersonHsiao

08/03/2012 at 01:33AM

27
#43 - Tyler / @tylerbindon

04/02/2013 at 05:15AM

28
#44 - Brad / @bjjwillis

12/30/2010 at 08:46AM

28
#45 - Utkarsh Kukreti / @utkarshkukreti

12/30/2010 at 09:16AM

28
#46 - Fer Enaf / @0x00C0FFEE

12/30/2010 at 01:07PM

28
#47 - Dmytro Shteflyuk / @kpumuk

12/31/2010 at 05:40AM

28
#48 - Vincent Isambart / @vincentisambart

01/01/2011 at 07:11AM

28
#49 - ls lahrs / @lslah

01/04/2011 at 07:33PM

28
#50 - Justin Love / @wondible

06/21/2011 at 02:24PM

28
#51 - Christopher Brew / @Seph1rothVII

01/25/2012 at 09:57PM

28
#52 - じょんあば / @john_ababa

03/13/2012 at 07:32AM

28
#53 - Nolen Royalty / @NolenRoyalty

04/21/2012 at 02:22AM

28
#54 - Joonas Pihlajamaa / @jokkebk

02/21/2014 at 03:58PM

29
#55 - Austin Taylor / @austintaylor

12/30/2010 at 04:55AM

29
#56 - Akira Matsuda / @a_matsuda

12/30/2010 at 07:21PM

29
#57 - Balkoth / @_Balkoth_

12/31/2010 at 04:37PM

29
#58 - Eivind Jahren / @HaskellElephant

01/14/2011 at 10:41PM

29
#59 - xhtmlforum / @xhtmlforum

01/25/2011 at 10:42AM

29
#60 - Øystein Walle / @oysteinwalle

07/11/2011 at 08:34AM