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

553 active golfers, 2537 entries

Leaderboard (lowest score wins):
48
#481 - Vichaya Raksakunpani / @toonbcc

04/23/2024 at 07:23AM

49
#482 - Mateusz / @Mateusz38377202

04/07/2023 at 12:11PM

49
#483 - vigojab / @vigojab

05/13/2024 at 08:38PM

50
#484 - Caio Nunes Tristao / @CaioNTT

06/10/2023 at 02:43AM

50
#485 - evgenii-kokorin / @evgenii-kokorin

02/16/2024 at 05:16AM

50
#486 - Alex Elarbee / @elarbee

09/22/2024 at 04:21PM

51
#487 - Minamoto / @Minamot31581390

06/03/2023 at 08:06AM

52
#488 - Garlic Bread / @GarlicB30592807

03/03/2023 at 05:49PM

52
#489 - Yongqi Li / @YongqiLi171268

05/22/2023 at 07:44AM

53
#490 - lucas.moon / @lucasmo20265566

03/15/2023 at 12:48PM

53
#491 - P37vo4WS / @p37vo4

05/18/2023 at 11:41AM

53
#492 - Sery Park / @sisi_with_vim

06/13/2023 at 05:18PM

53
#493 - vwv vwv / @snark3l

06/28/2023 at 12:06PM

53
#494 - Jake Shomer / @jake_shomer

08/28/2023 at 03:45PM

53
#495 - Karlo Bartolic / @fwslash

02/09/2024 at 07:18PM

54
#496 - 초롱이 / @treebird82

03/02/2023 at 06:42AM

54
#497 - Jake Shomer / @ShomerJake

08/15/2023 at 05:19PM

55
#498 - Bro / @SpeorgNot

09/17/2023 at 07:00PM

55
#499 - Kevin / @kebpiy

03/12/2024 at 04:44AM

58
#500 - 無所畏懼 / @littlepantstw

02/10/2023 at 07:49AM

58
#501 - Giang Duong / @GiangDu22019736

03/09/2024 at 11:17AM

59
#502 - ebs 2.1 / @ebstootired

02/08/2023 at 07:50PM

60
#503 - 楊育陞 / @bbnoir83

05/24/2023 at 06:38AM

60
#504 - No See See / @NoSeeplz

05/28/2023 at 01:07AM

60
#505 - Xuyi Meng / @xuyi_meng

06/08/2023 at 02:39AM

60
#506 - microjoint / @microjoint

04/11/2024 at 06:53AM

61
#507 - Matt DB / @MattDB12

12/22/2023 at 08:08PM

63
#508 - James Makela / @jamesmakela0

02/27/2023 at 01:35PM

64
#509 - Ward Quaghebeur / @WardQuaghebeur

05/16/2023 at 07:20PM

64
#510 - Matthew Slanker / @mpslanker

08/22/2023 at 05:02PM