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

550 active golfers, 2524 entries

Leaderboard (lowest score wins):
18
#241 - hex / @hexneth

02/26/2023 at 11:19PM

18
#242 - Satsuki Toshino / @asbestosLand

02/28/2023 at 12:17PM

18
#243 - Niko Sten / @nisteeni

03/02/2023 at 03:56PM

18
#244 - Delusi Van Houtan / @VanDelusi

03/04/2023 at 02:28PM

18
#245 - jay / @jayyylma0

04/09/2023 at 07:11PM

18
#246 - jessepye / @jessepye

05/27/2023 at 03:34PM

18
#247 - olivier chabot / @chabotlongboard

06/01/2023 at 12:33AM

18
#248 - Yoshi Nets / @yoshinets

06/09/2023 at 05:04PM

18
#249 - Olivier Bégassat / @zk_evm

06/11/2023 at 04:42PM

18
#250 - uppercase reducer / @uppercasereduce

06/24/2023 at 03:59PM

18
#251 - あべべ / @abebe123000

07/08/2023 at 06:34AM

18
#252 - satetheus-vimgolf / @SVimgolf

07/24/2023 at 06:31PM

18
#253 - Divvy C. / @divvy_c

08/11/2023 at 02:59PM

18
#254 - James / @Dronak

08/22/2023 at 08:20PM

18
#255 - Andrew Pritchard / @pilotInPyjamas

09/06/2023 at 03:44AM

18
#256 - Dyson / @DoctorDalek1963

09/15/2023 at 11:26AM

18
#257 - Aaron Hunt / @ach5910

09/27/2023 at 07:00PM

18
#258 - KP / @KPatr1ck

11/07/2023 at 09:42AM

18
#259 - konzy / @konzy

11/10/2023 at 06:47PM

18
#260 - TiOs-dev / @TiOs-dev

12/10/2023 at 07:09PM

18
#261 - Emin Umut Gerçek / @eugercek

01/09/2024 at 03:41PM

18
#262 - Andy / @andyfoster

04/16/2024 at 11:40AM

18
#263 - Jeff Arese / @jeffarese

05/27/2024 at 06:48PM

18
#264 - Jiří Alexandrovič / @Fanteria

05/31/2024 at 05:50PM

18
#265 - Jack / @bytesandwich

06/09/2024 at 02:49AM

18
#266 - Giacomo Sansone / @pcineverdies

07/01/2024 at 08:15PM

18
#267 - Elliot Schemmel / @regulated

10/03/2024 at 09:09PM

19
#268 - Robberechts Arne / @ArneRobberechts

01/31/2023 at 07:48PM

19
#269 - tneeds / @tneeds12

02/04/2023 at 07:52AM

19
#270 - @AndrewRadev@hachyderm.io / @andrewradev

02/06/2023 at 12:58PM