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

514 active golfers, 2367 entries

Leaderboard (lowest score wins):
20
#271 - max lloyd / @maxlloyd2

02/16/2023 at 04:59PM

20
#272 - Creatingman / @Creatingman1

02/17/2023 at 12:00PM

20
#273 - tomcola / @tomcola72

03/01/2023 at 05:18PM

20
#274 - Zephyr On Call / @zephyr_on_call

03/05/2023 at 06:47PM

20
#275 - Jake / @thejakenixon

03/17/2023 at 07:27PM

20
#276 - Yvan Chen / @Yifan913181

06/25/2023 at 11:32PM

20
#277 - John Khoo / @jtacktf

08/04/2023 at 10:16AM

20
#278 - Melker Fläskberg / @Mawkler

08/24/2023 at 11:15AM

20
#279 - xiang / @xiang56002997

08/29/2023 at 12:33AM

20
#280 - A C / @r4mmerAC

09/13/2023 at 01:25AM

20
#281 - LandR / @ListenAndR

10/13/2023 at 07:14AM

20
#282 - Frédéric Heulin / @talineo

12/01/2023 at 03:34PM

20
#283 - Michael / @openemitter

12/25/2023 at 10:37PM

20
#284 - Arey125 / @Arey125

01/10/2024 at 01:20PM

20
#285 - Steve Shi / @steveshi7

02/09/2024 at 10:54PM

20
#286 - zoomhauer / @paulonhere

04/23/2024 at 02:16AM

21
#287 - Bharath Hegde / @BharathIHegdeI

02/02/2023 at 02:06PM

21
#288 - Anthony Chao / @AnthonyRChao

02/03/2023 at 02:58AM

21
#289 - Jay Solana / @JaySolana3

02/07/2023 at 05:49AM

21
#290 - dermacon / @der_maconator

02/14/2023 at 09:46PM

21
#291 - D G G / @DGJourneyman

02/20/2023 at 03:29AM

21
#292 - yan / @yan59505478

02/26/2023 at 04:36AM

21
#293 - Christian Rametta / @ramettachristi1

04/09/2023 at 03:56PM

21
#294 - Joachim Nielandt / @JoachimNielandt

05/14/2023 at 09:24AM

21
#295 - 1 des frr fourmis / @frrfourmi

06/20/2023 at 08:53AM

21
#296 - Vivek Veer / @tempaccount4269

06/21/2023 at 12:07PM

21
#297 - Erick Gonzalez / @eygl_erick

06/23/2023 at 01:10AM

21
#298 - Игорь Квачёнок / @IKvacenok

07/25/2023 at 08:06PM

21
#299 - ohwell / @KiranClose

08/04/2023 at 06:13AM

21
#300 - Heiss / @Heisstea

08/19/2023 at 05:25PM