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

487 active golfers, 2243 entries

Leaderboard (lowest score wins):
65
#451 - Sami Tabet / @sfluor

02/09/2024 at 03:48PM

66
#452 - Gerrit Proessl / @g3rrit

04/12/2024 at 08:15AM

67
#453 - Egor Voronov / @do_syscall_64

05/25/2023 at 04:36PM

68
#454 - Jin-hyeok Kim / @JinhyeokKim12

03/10/2023 at 06:33AM

72
#455 - David Young / @dhyoung01

02/15/2023 at 07:55PM

72
#456 - Albert Lunde / @AlbertLund9335

03/15/2023 at 10:56AM

72
#457 - ArCyanic / @ArCyanic

03/04/2024 at 03:32PM

74
#458 - V / @account_test_k

06/12/2023 at 12:51PM

74
#459 - Grow Together / @growtechies

08/11/2023 at 01:50AM

75
#460 - Duy nguyễn / @Duycld03

07/19/2023 at 07:06PM

78
#461 - Teiva Harsanyi / @teivah

04/23/2023 at 05:09PM

78
#462 - Golfer / @golfplayervim

04/26/2023 at 09:58AM

79
#463 - フキヤ@肩書きなし男 / @yabu_bioinfo

03/12/2023 at 02:53PM

80
#464 - Nicholas Vincent DiSanto / @cozzzmo

06/13/2023 at 02:19PM

80
#465 - mojito04 / @mojito04

11/28/2023 at 06:37PM

82
#466 - wihinenh / @wihinenh

04/05/2024 at 07:00PM

89
#467 - Ali Aslan / @AliAsla95742367

06/23/2023 at 05:04AM

89
#468 - whtsht / @whtsht

01/14/2024 at 01:12PM

91
#469 - Boyd Kane - loadshedding in your calendar / @beyarkay

04/03/2023 at 05:25PM

92
#470 - Jeff Martin / @amVmZm1hcnRpbg

04/09/2023 at 02:25AM

93
#471 - Andrea Wang / @xufanwang

02/27/2023 at 06:53AM

93
#472 - Andrei Stefan / @asndia73hdiaus

07/30/2023 at 01:57PM

95
#473 - Brett Levenson / @brett_levenson

02/18/2023 at 06:10AM

96
#474 - furi0us / @_antivini_

03/27/2023 at 04:06PM

97
#475 - bluedeep / @XBluedeep

05/31/2023 at 03:22AM

101
#476 - Martin Sarosi / @RoganJoshua

02/07/2023 at 01:04PM

103
#477 - Felz33 / @felz33

06/05/2023 at 03:01AM

104
#478 - nivethan / @nivethan_me

07/27/2023 at 08:09PM

108
#479 - congve1 / @congve1

02/01/2023 at 09:19AM

113
#480 - 하구레77 / @HonuxJ

07/21/2023 at 08:19AM