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 9v0063d76854000000000249

Paste a column after a column

This task is very common while using multi-cursor. What is the elegant vim way ?

Start file
Names
Donald Knuth
Sebastian Thrun
Peter Norvig
Satoshi Nakamoto
Age
100
50
60
45
End file
Names,Age
Donald Knuth,100
Sebastian Thrun,50
Peter Norvig,60
Satoshi Nakamoto,45

View Diff

1,10c1,5
< Names
< Donald Knuth
< Sebastian Thrun
< Peter Norvig
< Satoshi Nakamoto
< Age
< 100
< 50
< 60
< 45
---
> Names,Age
> Donald Knuth,100
> Sebastian Thrun,50
> Peter Norvig,60
> Satoshi Nakamoto,45

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 513 remaining solutions by signing in and submitting your own entry
#514 KingSann / @iferkey - Score: 275 - 09/13/23 @ 03:34
6G<C-V><Down><Down><Down><Down><Down><Down><Down><Down><Right><Left>y<Up><Up><Up><Up><Up><Up><Up><Up>A           <C-C><C-C><Right>pu<Down><Down><Down><Down><Down><Down><Down><Up><Up><Left><Left><C-V><Right><Down><Right><Down><Right><Down><Down><Left><Right><Left>y<Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up>A<C-R>"<C-C><C-C>upu<Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Left><Up><Up><Up><Up><C-V><Right><Down><Right><Down><Down><Down><Down>y<Up><Up><Up><Up><Up><Up><Up><Up><Up>A   <C-C><C-C>p<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Down><Down><Down><Down><Down>v<Down><Down><Down><Down><Down><Down><Down>D<Up><Up><Up><Up><Right><Right><Right><Right><Right>DFaU<Right><Left>DU<C-C><C-C>UUUUU<Right>UUUUUUa<Tab><Tab><BS><BS> aGE<BS><BS><BS><BS>, Age<Down><Right><Right><C-C><C-C><Right>df1i, 1<BS><BS>1<Left><Up><Left><Left><Left><BS><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><C-C><C-C><Right>v<Right><Right><Right><Right>s,5<Down><Left><Left><Left><Left><C-C><C-C>v<Right><Right><Right><Right><Right><Right>s,<Down><Right><Right><Right>v<Right><Right><BS><BS><Right><BS><BS>.<BS>,<C-C><C-C>ZZ

0 comments


Created by: @__ngtrongkha

514 active golfers, 2367 entries

Leaderboard (lowest score wins):
14
#31 - harsha / @pathuri86

04/14/2023 at 04:38PM

14
#32 - pc three0727 / @PThree072740750

04/16/2023 at 01:03PM

14
#33 - Иван / @wansmer

04/23/2023 at 05:55PM

14
#34 - glorboglarba / @glorboglarba

04/24/2023 at 01:20AM

14
#35 - owner / @owner87643936

04/24/2023 at 05:49PM

14
#36 - NOT_FOR_TWEETS / @_NOTIMPLEMENTED

04/25/2023 at 05:08AM

14
#37 - caleb / @_calebfreitas

04/26/2023 at 10:26PM

14
#38 - Arthur DELORT / @artDelort

05/14/2023 at 10:52AM

14
#39 - Alfio / @Alfio31105646

05/19/2023 at 12:51PM

14
#40 - cozy_sauna / @cozy_sauna

05/21/2023 at 07:15AM

14
#41 - canalun / @i_am_canalun_

05/30/2023 at 11:12AM

14
#42 - わーお / @lwgZVRoOQ8Nf6VG

06/02/2023 at 01:06PM

14
#43 - Alex / @alexbhandariy

06/03/2023 at 04:09AM

14
#44 - jeff / @jeff85959854520

06/16/2023 at 04:39PM

14
#45 - Topvimgolf Score / @topvimgolfscore

06/18/2023 at 10:19AM

14
#46 - Tanzeel Kazi / @tanzeelkazi

06/20/2023 at 05:01AM

14
#47 - Daniel Simionato / @weseven

06/23/2023 at 12:03PM

14
#48 - 买买买买买 / @yzzzaabb

06/30/2023 at 07:22AM

14
#49 - erik.forex / @ErikForex

06/30/2023 at 05:37PM

14
#50 - Golf Vim / @GolfVim11388

07/06/2023 at 02:13AM

14
#51 - ShookerAndBeta / @Shooker2012

07/07/2023 at 09:33AM

14
#52 - くりち / 栗原佑弥 / @kurichi97

07/08/2023 at 08:03AM

14
#53 - Gs Abl / @gs_abl

07/09/2023 at 11:40AM

14
#54 - jroberts / @jroberts_f

07/17/2023 at 07:38AM

14
#55 - Glen Huang / @hihgl

07/19/2023 at 03:27AM

14
#56 - Danilo J. S. Bellini 🥊🇧🇷 / @danilobellini

07/24/2023 at 02:12AM

14
#57 - e1mnos / @e1mnos

08/07/2023 at 04:48PM

14
#58 - Blake Tereau / @BlakeTereau

08/12/2023 at 05:59PM

14
#59 - Gabriel Reed / @gabetrotro

08/25/2023 at 07:16AM

14
#60 - kongreif / @kongreifamk

08/25/2023 at 09:39AM