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):
26
#361 - lejeunel / @lejeunel

04/04/2024 at 09:36AM

27
#362 - Zhou Jiazheng / @ZhouJiazheng0

02/05/2023 at 07:36AM

27
#363 - Aldiyar Amirov / @aldeeyar

03/18/2023 at 09:25PM

27
#364 - Carly Matson / @carlymatson

04/24/2023 at 01:21PM

27
#365 - Eric Romano / @shlomano

10/05/2023 at 05:35AM

27
#366 - George Angelopoulos / @gangelop

02/11/2024 at 08:05AM

27
#367 - jonmellerby / @jonmellerby

04/12/2024 at 12:09PM

28
#368 - onigomex / @onigomex

02/20/2023 at 12:24PM

29
#369 - Ben Kettle / @kett_ben

02/18/2023 at 12:04AM

29
#370 - Mequam BlueSpark / @MBluespark68823

03/15/2023 at 03:11AM

31
#371 - JuanP / @JuanP41938416

02/11/2023 at 02:52AM

31
#372 - Max Shen / @m4xshen

05/24/2023 at 06:35AM

31
#373 - Sumanth Yedoti / @sumanthyedoti

05/25/2023 at 06:04PM

31
#374 - dakmuk / @yeongha_yang

07/07/2023 at 12:47AM

31
#375 - v punch / @vpunch531192

08/07/2023 at 03:36PM

31
#376 - Will-Hendrix / @Will-Hendrix

03/26/2024 at 01:51PM

32
#377 - Pretend it's Beef / @EthanMcQuarrie

08/25/2023 at 04:41AM

33
#378 - Elton Kamami / @pixel_grid

02/03/2023 at 08:09PM

33
#379 - wei / @weixiaobaol

02/22/2023 at 06:34AM

33
#380 - 박준서 / @junseo_12335

03/18/2023 at 12:28PM

33
#381 - mocoma / @mocoma1

07/07/2023 at 10:17AM

33
#382 - ryne LEE / @mearyne

09/03/2023 at 02:07AM

33
#383 - I hate x why am i here / @IHate7907

11/06/2023 at 07:50PM

34
#384 - Hugo Tai / @HugoTai100

02/09/2023 at 08:18AM

34
#385 - Jakob Föger / @drvolcano86

02/17/2023 at 11:39AM

34
#386 - Neovea Neovea / @VimGolferSTKM

05/24/2023 at 07:54AM

34
#387 - Jason Sinanan / @aceTnT117

08/31/2023 at 02:16AM

34
#388 - lethalNeutrino / @lethalNeutrino

12/01/2023 at 05:48AM

34
#389 - vimster12312 / @vimster12394846

03/27/2024 at 09:57PM

34
#390 - gpfl0712 / @gpfl0712

04/13/2024 at 05:43PM