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 500 remaining solutions by signing in and submitting your own entry
#501 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

501 active golfers, 2314 entries

Leaderboard (lowest score wins):
14
#1 - タナイ / @okinawa__noodle

02/01/2023 at 11:34PM

14
#2 - Rainer Bachleitner / @rabachleitner

02/04/2023 at 09:15PM

14
#3 - usermod / @g_usermod

02/05/2023 at 11:32PM

14
#4 - fraktal / @FraktalRebirth

02/06/2023 at 02:45AM

14
#5 - DevilBb / @bb6_devil

02/07/2023 at 10:09AM

14
#6 - Kha Nguyen / @__ngtrongkha

02/08/2023 at 04:32AM

14
#7 - John Braxler / @braxler

02/09/2023 at 02:08PM

14
#8 - e_e / @eleloi

02/09/2023 at 04:56PM

14
#9 - Ringel Natter / @SenorTenor

02/10/2023 at 04:27PM

14
#10 - Irakli Chigvaria / @tchigvaria

02/14/2023 at 11:03AM

14
#11 - Alex Lewin / @_AlexLewin

02/16/2023 at 11:42PM

14
#12 - Ekalos / @_Ekalos

02/25/2023 at 05:17PM

14
#13 - d44d3w / @d44d3w

02/26/2023 at 09:47PM

14
#14 - Brett Bender / @brttbndr

02/27/2023 at 03:47AM

14
#15 - hu3 hu3 / @hu3hu318

03/03/2023 at 01:16AM

14
#16 - rstcruzo / @rstcruzo

03/05/2023 at 06:22AM

14
#17 - Ted / @TodorDukov

03/13/2023 at 09:24PM

14
#18 - Cláudio Caseiro / @ccaseiro

03/17/2023 at 02:23PM

14
#19 - bignos / @bignos2

03/18/2023 at 08:44AM

14
#20 - ­김수현 / 학생 / 건설환경공학부 / @gimsuhyeonhags1

03/21/2023 at 04:26PM

14
#21 - David Johnston / @nuts4nuts4nuts

03/22/2023 at 09:32PM

14
#22 - reo101 / @reo101gamer

03/24/2023 at 01:09PM

14
#23 - MC / @MC88686523

03/25/2023 at 01:21PM

14
#24 - Fati Haziri / @BigKingFati

03/26/2023 at 04:38PM

14
#25 - Glorbo / @GlorbyGlorbo

03/31/2023 at 05:51PM

14
#26 - 陈俊池 / @calm_furious

04/01/2023 at 01:21PM

14
#27 - hjiog / @HjiogCoder

04/01/2023 at 05:23PM

14
#28 - Fabio Ortega / @_Ortega

04/05/2023 at 02:50AM

14
#29 - 조정모 / @zzzqqqgggfff

04/07/2023 at 03:28PM

14
#30 - Håkon Harnes / @HarnesHakon

04/11/2023 at 01:16PM