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):
14
#61 - Jonathan Gin / @jonathangin52

08/27/2023 at 06:27AM

14
#62 - Matthew Finlayson / @mattf1n

08/28/2023 at 11:52PM

14
#63 - Pablo Cárdenas / @pablo_cardenasb

09/01/2023 at 10:18PM

14
#64 - Detached Head State / @DtachdHeadState

09/08/2023 at 12:05AM

14
#65 - Honza Uhlík / @JanUhlik

09/20/2023 at 10:14AM

14
#66 - Monkey Boy / @monkey29089

09/22/2023 at 12:22AM

14
#67 - Adam / @Adam00000000002

09/23/2023 at 12:37PM

14
#68 - djheidihoe / @djheidihoe1

10/03/2023 at 08:44PM

14
#69 - 7733865@qq.com / @tjxwg

10/16/2023 at 12:09PM

14
#70 - scpchicken / @scpchick

10/19/2023 at 05:48PM

14
#71 - Emil Lykke Grann / @emil406p

10/26/2023 at 01:08PM

14
#72 - Jakob Weickmann / @jweickm

11/09/2023 at 03:41PM

14
#73 - Blake Wingard / @Bats6789

11/16/2023 at 07:58PM

14
#74 - Leon Katsnelson / @leonkatsnelson

11/21/2023 at 04:25AM

14
#75 - MonkieeBoi / @MonkieeBoi

11/22/2023 at 05:48AM

14
#76 - 悟史 / @A1OBJTxN5fTg5EJ

11/29/2023 at 04:28PM

14
#77 - Michael Chen / @mchen91

11/30/2023 at 04:40AM

14
#78 - levioneyh / @levioneyh

12/13/2023 at 01:02AM

14
#79 - Rob Pilling / @bobrippling

12/15/2023 at 08:36PM

14
#80 - Qing Liu / @poeminlash

12/18/2023 at 03:56AM

14
#81 - xiaoao1024 / @xiaoao1024

12/20/2023 at 08:13AM

14
#82 - hatena / @rotwm

12/24/2023 at 07:09PM

14
#83 - jeffreymrussell / @jeffreymrussell

01/04/2024 at 03:46PM

14
#84 - BlockLune / @BlockLune

01/08/2024 at 05:51AM

14
#85 - ndaval / @ndaval

01/11/2024 at 10:04PM

14
#86 - ¥u Dev / @yu-d

01/14/2024 at 07:09AM

14
#87 - ye-chuan / @ye-chuan

01/24/2024 at 07:23PM

14
#88 - Moogie2 / @Moogie2

02/16/2024 at 11:18PM

14
#89 - Anaritus / @Anaritus

02/23/2024 at 08:10AM

14
#90 - moh ayaya / @AyayaMoh

02/26/2024 at 04:47PM