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):
36
#391 - z00master / @z00master

03/29/2023 at 09:43PM

36
#392 - pbwn / @pbwn

04/08/2023 at 07:22AM

36
#393 - Ayman / @RecommenderTest

08/21/2023 at 05:33AM

36
#394 - Roman Malyshkov / @Rmkek

11/07/2023 at 12:11PM

37
#395 - 2021deej / @2021Deej

02/16/2023 at 04:58PM

37
#396 - Selvaganapathy P / @canabady

03/17/2023 at 01:07PM

37
#397 - Dominik Filker / @DFilker

04/23/2023 at 08:51PM

37
#398 - GongChaorui / @GChaorui

05/15/2023 at 03:25PM

37
#399 - Austin Meier / @AustinMeier_

06/11/2023 at 07:53PM

37
#400 - Justinian III / @iii_justin64535

10/07/2023 at 10:40PM

37
#401 - ericlovesmath / @ericlovesmath

01/15/2024 at 02:01AM

38
#402 - Tran Dinh Trung / @tdtrung17693

03/11/2023 at 02:19AM

38
#403 - Hassan Salehi / @DevSalehi

04/22/2023 at 02:30PM

38
#404 - Volodymyr Masliy / @skipua

05/19/2023 at 09:34AM

39
#405 - Nitin Madnani / @haikuman

02/23/2023 at 11:34PM

39
#406 - elhobb / @elhobb1

03/22/2023 at 01:38PM

39
#407 - Ezha / @iamezha

09/12/2023 at 04:42AM

39
#408 - satake0916 / @satake0916

12/20/2023 at 12:43AM

40
#409 - Daniel Niemczyk / @Adentalis

12/07/2023 at 06:42PM

40
#410 - Andrew Eggleston / @andreweggleston

12/19/2023 at 07:59PM

41
#411 - El Tots / @totoruiz1432

03/15/2023 at 02:18AM

41
#412 - Peter Szerzo / @peterszerzo

07/03/2023 at 01:39PM

41
#413 - JL Beauminy / @jeanloupbmn

10/01/2023 at 04:33PM

42
#414 - SmoggyFog / @SmoggyFog

05/27/2023 at 01:15AM

42
#415 - Kaepa69 / @kaepa3

09/09/2023 at 05:55AM

43
#416 - glock / @mrgglock

03/14/2023 at 06:24PM

43
#417 - Cyrus Kirk / @cyrusjkirk

05/10/2023 at 08:24AM

43
#418 - clark / @clark05358812

07/25/2023 at 01:45AM

44
#419 - Craig Ferguson / @_craigfe

04/09/2023 at 09:56PM

45
#420 - John Clara / @johnanthclara

04/19/2023 at 04:39AM