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 140 remaining solutions by signing in and submitting your own entry
#141 Thomas Hiron / @thomashiron - Score: 190 - 02/20/23 @ 10:07
kk5j<C-V>5v<C-V>jjjjjj$d<C-V>kkkkkk$pupuu<C-V>jjjj$diii<C-X><C-C><C-C>upupukkkkk$<C-V>kkjjjj$oA<C-C><C-C>pUUUUUUUUUUUUUUUuuuuuuuuuuuuuuujuuugg<C-V>5j$k<C-A>gg<C-C><C-C><C-V>5jk$A,<C-C><C-C><C-C><C-C>u<C-V>4j$A,<C-C><C-C>ugg<C-V>jjjj$A,<Esc><Esc>uggjk<C-V>4j$A,<C-C><C-C>u<C-V>4j$A,<Esc>uu<Esc><Esc>MqqGdwkJ4kA,<Esc>pq4@qZZ

0 comments


Created by: @__ngtrongkha

141 active golfers, 612 entries

Leaderboard (lowest score wins):
23
#91 - Mohammed Raqeeb Shafeeque / @raqeebshafeeq

02/09/2023 at 01:00PM

23
#92 - Jay Knight ♞ / @jayknight

03/03/2023 at 09:20PM

23
#93 - Átila Saraiva Quintela Soares / @AtilaQuintela

03/12/2023 at 06:08AM

23
#94 - Robert Wild / @_rwild

03/18/2023 at 05:54PM

24
#95 - Himanshu Tank / @himanshutank75

03/01/2023 at 11:33AM

24
#96 - Mikhail / @mtomy

03/14/2023 at 09:49AM

25
#97 - alhegamu / @alhegamu

02/27/2023 at 05:08PM

25
#98 - Alex Martin / @Subtle__Co

02/28/2023 at 03:42PM

25
#99 - hugo yamaki / @_hyamak

03/15/2023 at 02:00AM

26
#100 - Max Taylor / @maxtaylorxyz

02/13/2023 at 07:29PM

26
#101 - lytoooo0 / @lytoooo0

03/03/2023 at 08:20PM

27
#102 - Zhou Jiazheng / @ZhouJiazheng0

02/05/2023 at 07:36AM

27
#103 - Aldiyar Amirov / @aldeeyar

03/18/2023 at 09:25PM

28
#104 - onigomex / @onigomex

02/20/2023 at 12:24PM

29
#105 - Ben Kettle / @kett_ben

02/18/2023 at 12:04AM

29
#106 - Mequam BlueSpark / @MBluespark68823

03/15/2023 at 03:11AM

31
#107 - JuanP / @JuanP41938416

02/11/2023 at 02:52AM

33
#108 - Elton Kamami / @pixel_grid

02/03/2023 at 08:09PM

33
#109 - wei / @weixiaobaol

02/22/2023 at 06:34AM

33
#110 - 박준서 / @junseo_12335

03/18/2023 at 12:28PM

34
#111 - Hugo Tai / @HugoTai100

02/09/2023 at 08:18AM

34
#112 - Jakob Föger / @drvolcano86

02/17/2023 at 11:39AM

37
#113 - 2021deej / @2021Deej

02/16/2023 at 04:58PM

37
#114 - Selvaganapathy P / @canabady

03/17/2023 at 01:07PM

38
#115 - Tran Dinh Trung / @tdtrung17693

03/11/2023 at 02:19AM

39
#116 - Nitin Madnani / @haikuman

02/23/2023 at 11:34PM

41
#117 - El Tots / @totoruiz1432

03/15/2023 at 02:18AM

43
#118 - glock / @mrgglock

03/14/2023 at 06:24PM

46
#119 - Xpox0 / @Xpox01

03/02/2023 at 12:24PM

46
#120 - U G / @rozeannehd

03/19/2023 at 04:38AM