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

410 active golfers, 1910 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 - Opus28 / @Opus28

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

15
#78 - Alex Pepper / @AlexPepper1457

10/27/2023 at 05:43PM

15
#79 - Remus Dalrymple / @bornintheflames

12/10/2023 at 09:46PM

16
#80 - Jon Krause / @jkrause314

01/30/2023 at 05:44PM

16
#81 - Jean George / @JeanGeo20504212

01/30/2023 at 07:19PM

16
#82 - 0xf00ff00f / @0xf00ff00f

02/03/2023 at 05:53PM

16
#83 - Henry Sloan / @HenryKSloan

02/05/2023 at 05:22AM

16
#84 - 妹様万歳 / @imoutomansai

02/08/2023 at 04:06PM

16
#85 - Alex Oliveira / @AlexROliveira2

02/08/2023 at 11:18PM

16
#86 - James Harvey / @JimmyJamesII

02/11/2023 at 10:35PM

16
#87 - かみひろ / @km_hr

02/18/2023 at 06:22AM

16
#88 - Casey O'Donnell / @CaseyOD15519082

02/19/2023 at 08:11PM

16
#89 - foobarbazqux12345 / @foobarbazqux121

02/25/2023 at 05:57PM

16
#90 - Chris Taylor / @fluppyXC

02/26/2023 at 02:35PM