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

227 active golfers, 1074 entries

Leaderboard (lowest score wins):
65
#211 - ColeW - Warrior Jar / @quetzalColetl

03/06/2023 at 02:19AM

65
#212 - Joshua Stupplebeen / @joshstupplebeen

04/18/2023 at 08:31PM

67
#213 - Egor Voronov / @do_syscall_64

05/25/2023 at 04:36PM

68
#214 - Jin-hyeok Kim / @JinhyeokKim12

03/10/2023 at 06:33AM

72
#215 - David Young / @dhyoung01

02/15/2023 at 07:55PM

72
#216 - Albert Lunde / @AlbertLund9335

03/15/2023 at 10:56AM

78
#217 - Teiva Harsanyi / @teivah

04/23/2023 at 05:09PM

78
#218 - Golfer / @golfplayervim

04/26/2023 at 09:58AM

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

03/12/2023 at 02:53PM

91
#220 - Boyd Kane - loadshedding in your calendar / @beyarkay

04/03/2023 at 05:25PM

92
#221 - Jeff Martin / @amVmZm1hcnRpbg

04/09/2023 at 02:25AM

93
#222 - Andrea Wang / @xufanwang

02/27/2023 at 06:53AM

95
#223 - Brett Levenson / @brett_levenson

02/18/2023 at 06:10AM

96
#224 - furi0us / @_antivini_

03/27/2023 at 04:06PM

101
#225 - Martin Sarosi / @RoganJoshua

02/07/2023 at 01:04PM

108
#226 - congve1 / @congve1

02/01/2023 at 09:19AM

190
#227 - Thomas Hiron / @thomashiron

02/20/2023 at 10:07AM