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

144 active golfers, 636 entries

Leaderboard (lowest score wins):
41
#121 - El Tots / @totoruiz1432

03/15/2023 at 02:18AM

43
#122 - glock / @mrgglock

03/14/2023 at 06:24PM

46
#123 - Xpox0 / @Xpox01

03/02/2023 at 12:24PM

46
#124 - U G / @rozeannehd

03/19/2023 at 04:38AM

48
#125 - Phi / @Phi_W5

03/08/2023 at 12:09AM

52
#126 - Garlic Bread / @GarlicB30592807

03/03/2023 at 05:49PM

53
#127 - lucas.moon / @lucasmo20265566

03/15/2023 at 12:48PM

54
#128 - 모정건 / @treebird82

03/02/2023 at 06:42AM

54
#129 - GongChaorui / @GChaorui

03/07/2023 at 04:58PM

58
#130 - 無所畏懼 / @littlepantstw

02/10/2023 at 07:49AM

59
#131 - ebs 2.1 / @ebstootired

02/08/2023 at 07:50PM

63
#132 - James Makela / @jamesmakela0

02/27/2023 at 01:35PM

65
#133 - ColeW - Warrior Jar / @quetzalColetl

03/06/2023 at 02:19AM

67
#134 - jasonlee / @jasonle61136657

03/14/2023 at 12:56AM

68
#135 - Jin-hyeok Kim / @JinhyeokKim12

03/10/2023 at 06:33AM

72
#136 - David Young / @dhyoung01

02/15/2023 at 07:55PM

72
#137 - Albert Lunde / @AlbertLund9335

03/15/2023 at 10:56AM

74
#138 - haipeng li / @HaipengLie

03/14/2023 at 04:29PM

79
#139 - フキヤ@肩書きなし男 / @yabu_bioinfo

03/12/2023 at 02:53PM

93
#140 - Andrea Wang / @xufanwang

02/27/2023 at 06:53AM

95
#141 - Brett Levenson / @brett_levenson

02/18/2023 at 06:10AM

101
#142 - Martin Sarosi / @RoganJoshua

02/07/2023 at 01:04PM

108
#143 - congve1 / @congve1

02/01/2023 at 09:19AM

190
#144 - Thomas Hiron / @thomashiron

02/20/2023 at 10:07AM