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):
19
#271 - @AndrewRadev@hachyderm.io / @andrewradev

02/06/2023 at 12:58PM

19
#272 - David / @imdavidhwang

02/20/2023 at 06:24PM

19
#273 - Ahmed Mashalla / @Hahgaayyyy

02/24/2023 at 01:25PM

19
#274 - tapster / @tapster36955260

02/24/2023 at 04:47PM

19
#275 - Harrison Smith / @HarrisonSm97044

03/27/2023 at 12:00AM

19
#276 - jasonlee / @jasonle61136657

04/05/2023 at 03:38PM

19
#277 - Branimir Mirčetić / @BranimirMireti1

04/17/2023 at 02:28PM

19
#278 - diginator / @diginator1

04/26/2023 at 11:35PM

19
#279 - navytable / @navytable

06/18/2023 at 12:13AM

19
#280 - samuel erlands / @ErlandsSam52210

06/30/2023 at 11:36AM

19
#281 - phastasmn / @phastasmn

07/23/2023 at 09:10AM

19
#282 - Justin Llanos / @llanosj427

09/02/2023 at 07:33PM

19
#283 - Jamie / @JamJar00

01/05/2024 at 12:20PM

19
#284 - demostanis / @demostanis

01/09/2024 at 05:35PM

19
#285 - Yichao Wu / @MonusW

02/13/2024 at 02:01PM

19
#286 - Lily / @totallyuniquelily

05/08/2024 at 12:26PM

19
#287 - TobSick / @TobSick

06/02/2024 at 09:54AM

19
#288 - Kristofers Solo / @kristoferssolo

07/12/2024 at 05:16PM

19
#289 - Prem Netsuwan / @grnnja

08/27/2024 at 04:03PM

19
#290 - DayuanX / @DayuanX

10/05/2024 at 06:07AM

20
#291 - steve / @steve35773420

02/06/2023 at 07:38PM

20
#292 - Stefan / @__stefan_r__

02/07/2023 at 11:08PM

20
#293 - max lloyd / @maxlloyd2

02/16/2023 at 04:59PM

20
#294 - Creatingman / @Creatingman1

02/17/2023 at 12:00PM

20
#295 - tomcola / @tomcola72

03/01/2023 at 05:18PM

20
#296 - Zephyr On Call / @zephyr_on_call

03/05/2023 at 06:47PM

20
#297 - Jake / @thejakenixon

03/17/2023 at 07:27PM

20
#298 - Yvan Chen / @Yifan913181

06/25/2023 at 11:32PM

20
#299 - John Khoo / @jtacktf

08/04/2023 at 10:16AM

20
#300 - Melker Fläskberg / @Mawkler

08/24/2023 at 11:15AM