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):
16
#121 - quan ngo trong / @quanngotrong1

03/01/2023 at 02:55PM

16
#122 - BLOO / @BLOOpota

03/01/2023 at 09:32PM

16
#123 - 黄高昂 / @suewiq

03/02/2023 at 05:38AM

16
#124 - b1gz / @_b1gz

03/02/2023 at 07:10AM

16
#125 - jon smith / @jotono91472250

03/04/2023 at 12:06AM

16
#126 - mevmev / @mevmev8

03/04/2023 at 01:17PM

16
#127 - quemeraisc / @quemeraisc

03/10/2023 at 01:27PM

16
#128 - Patrykduda / @Patrykduda17

03/13/2023 at 07:12PM

16
#129 - nie_zx / @niezx2

03/14/2023 at 07:54AM

16
#130 - popexizhi / @popexizhi

03/14/2023 at 11:26AM

16
#131 - François / @mortyZZ

03/23/2023 at 10:30PM

16
#132 - Mario Olofo / @mario_olofo

03/24/2023 at 01:42PM

16
#133 - Alexander Curtis / @AlexOnCode

03/24/2023 at 05:31PM

16
#134 - Cata / @catacox17

04/03/2023 at 11:28PM

16
#135 - Francois Marais / @maraisf

04/04/2023 at 05:42PM

16
#136 - Balthazar Harnawe / @HotNastySpeed

04/09/2023 at 09:14PM

16
#137 - James Reading / @bowly_jim

04/11/2023 at 11:53AM

16
#138 - Theo Vasileiadis / @theo_vasi

04/13/2023 at 09:36PM

16
#139 - Dāky 🦊 / @DarkNekoArt

04/17/2023 at 12:03PM

16
#140 - ant0sha / @ant0shaR

04/22/2023 at 09:14PM

16
#141 - sap / @sap38838304

04/25/2023 at 06:28AM

16
#142 - ._. / @Katharsic

05/18/2023 at 05:25PM

16
#143 - Colby Brown / @colbyabrown

05/19/2023 at 12:00AM

16
#144 - someperson150 / @someperson150

05/20/2023 at 11:26AM

16
#145 - Luke Korn / @LukeKorn

05/25/2023 at 01:48PM

16
#146 - James Hayden / @don_jaime

05/26/2023 at 05:59AM

16
#147 - Sean Dubb / @seandubb_

06/01/2023 at 05:56PM

16
#148 - Dionysus / @user101user

06/13/2023 at 02:27PM

16
#149 - funorange / @FunOrange42

06/13/2023 at 06:05PM

16
#150 - drumstix576 / @drumstix576

06/16/2023 at 08:24PM