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

454 active golfers, 2121 entries

Leaderboard (lowest score wins):
15
#91 - Alex Pepper / @AlexPepper1457

10/27/2023 at 05:43PM

15
#92 - Remus Dalrymple / @bornintheflames

12/10/2023 at 09:46PM

15
#93 - Daniel Allen / @danielgallen

01/13/2024 at 07:38PM

15
#94 - Trewornan / @Trewornan

01/26/2024 at 11:11AM

15
#95 - EtherFan / @ether_fan

02/25/2024 at 08:02AM

16
#96 - Jon Krause / @jkrause314

01/30/2023 at 05:44PM

16
#97 - Jean George / @JeanGeo20504212

01/30/2023 at 07:19PM

16
#98 - 0xf00ff00f / @0xf00ff00f

02/03/2023 at 05:53PM

16
#99 - Henry Sloan / @HenryKSloan

02/05/2023 at 05:22AM

16
#100 - 妹様万歳 / @imoutomansai

02/08/2023 at 04:06PM

16
#101 - Alex Oliveira / @AlexROliveira2

02/08/2023 at 11:18PM

16
#102 - James Harvey / @JimmyJamesII

02/11/2023 at 10:35PM

16
#103 - かみひろ / @km_hr

02/18/2023 at 06:22AM

16
#104 - Casey O'Donnell / @CaseyOD15519082

02/19/2023 at 08:11PM

16
#105 - foobarbazqux12345 / @foobarbazqux121

02/25/2023 at 05:57PM

16
#106 - Chris Taylor / @fluppyXC

02/26/2023 at 02:35PM

16
#107 - quan ngo trong / @quanngotrong1

03/01/2023 at 02:55PM

16
#108 - BLOO / @BLOOpota

03/01/2023 at 09:32PM

16
#109 - 黄高昂 / @suewiq

03/02/2023 at 05:38AM

16
#110 - b1gz / @_b1gz

03/02/2023 at 07:10AM

16
#111 - jon smith / @jotono91472250

03/04/2023 at 12:06AM

16
#112 - mevmev / @mevmev8

03/04/2023 at 01:17PM

16
#113 - quemeraisc / @quemeraisc

03/10/2023 at 01:27PM

16
#114 - Patrykduda / @Patrykduda17

03/13/2023 at 07:12PM

16
#115 - nie_zx / @niezx2

03/14/2023 at 07:54AM

16
#116 - popexizhi / @popexizhi

03/14/2023 at 11:26AM

16
#117 - François / @mortyZZ

03/23/2023 at 10:30PM

16
#118 - Mario Olofo / @mario_olofo

03/24/2023 at 01:42PM

16
#119 - Alexander Curtis / @AlexOnCode

03/24/2023 at 05:31PM

16
#120 - Cata / @catacox17

04/03/2023 at 11:28PM