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):
64
#511 - Donovan M / @dmille56

04/16/2024 at 06:45AM

64
#512 - Dmitry Astapenko / @dmitree

09/27/2024 at 05:32PM

65
#513 - ColeW - Warrior Jar / @quetzalColetl

03/06/2023 at 02:19AM

65
#514 - Joshua Stupplebeen / @joshstupplebeen

04/18/2023 at 08:31PM

65
#515 - Sami Tabet / @sfluor

02/09/2024 at 03:48PM

65
#516 - Ganit Kumar / @ganit44

06/11/2024 at 07:00AM

66
#517 - Gerrit Proessl / @g3rrit

04/12/2024 at 08:15AM

67
#518 - Egor Voronov / @do_syscall_64

05/25/2023 at 04:36PM

68
#519 - Jin-hyeok Kim / @JinhyeokKim12

03/10/2023 at 06:33AM

72
#520 - David Young / @dhyoung01

02/15/2023 at 07:55PM

72
#521 - Albert Lunde / @AlbertLund9335

03/15/2023 at 10:56AM

72
#522 - ArCyanic / @ArCyanic

03/04/2024 at 03:32PM

74
#523 - V / @account_test_k

06/12/2023 at 12:51PM

74
#524 - Grow Together / @growtechies

08/11/2023 at 01:50AM

75
#525 - Duy nguyễn / @Duycld03

07/19/2023 at 07:06PM

77
#526 - nickGPT / @nickandbro

08/26/2024 at 07:50PM

78
#527 - Teiva Harsanyi / @teivah

04/23/2023 at 05:09PM

78
#528 - Golfer / @golfplayervim

04/26/2023 at 09:58AM

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

03/12/2023 at 02:53PM

80
#530 - Nicholas Vincent DiSanto / @cozzzmo

06/13/2023 at 02:19PM

80
#531 - mojito04 / @mojito04

11/28/2023 at 06:37PM

82
#532 - wihinenh / @wihinenh

04/05/2024 at 07:00PM

89
#533 - Ali Aslan / @AliAsla95742367

06/23/2023 at 05:04AM

89
#534 - whtsht / @whtsht

01/14/2024 at 01:12PM

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

04/03/2023 at 05:25PM

92
#536 - Jeff Martin / @amVmZm1hcnRpbg

04/09/2023 at 02:25AM

93
#537 - Andrea Wang / @xufanwang

02/27/2023 at 06:53AM

93
#538 - Andrei Stefan / @asndia73hdiaus

07/30/2023 at 01:57PM

95
#539 - Brett Levenson / @brett_levenson

02/18/2023 at 06:10AM

96
#540 - furi0us / @_antivini_

03/27/2023 at 04:06PM