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

@XBluedeep: why are there a lot of invalid strokes?

1 comment


Created by: @__ngtrongkha

242 active golfers, 1136 entries

Leaderboard (lowest score wins):
23
#151 - Robert Wild / @_rwild

03/18/2023 at 05:54PM

23
#152 - Niktoshka / @___krot

05/16/2023 at 04:27AM

23
#153 - Spam Mail / @mrfdot

05/26/2023 at 12:03AM

23
#154 - Erick Gonzalez / @eygl_erick

06/08/2023 at 11:38PM

24
#155 - Himanshu Tank / @himanshutank75

03/01/2023 at 11:33AM

24
#156 - Mikhail / @mtomy

03/14/2023 at 09:49AM

24
#157 - ひろま / @HrmsEndo

04/08/2023 at 01:24AM

24
#158 - yann / @ylsarto

05/15/2023 at 08:08PM

24
#159 - SpLauT / @SpLauT1

05/19/2023 at 08:27PM

24
#160 - Parsa Alizadeh / @lizadeh1

05/20/2023 at 02:57PM

24
#161 - aspiring robber baron / @0xApophenia

05/22/2023 at 04:28AM

25
#162 - alhegamu / @alhegamu

02/27/2023 at 05:08PM

25
#163 - Alex Martin / @Subtle__Co

02/28/2023 at 03:42PM

25
#164 - hugo yamaki / @_hyamak

03/15/2023 at 02:00AM

25
#165 - Philippe Carphin / @PCarphin

05/14/2023 at 08:10PM

26
#166 - Max Taylor / @maxtaylorxyz

02/13/2023 at 07:29PM

26
#167 - lytoooo0 / @lytoooo0

03/03/2023 at 08:20PM

26
#168 - johnsnow / @johnsnow828904

04/13/2023 at 04:54PM

26
#169 - naka / @nak38223985244

06/03/2023 at 01:27PM

27
#170 - Zhou Jiazheng / @ZhouJiazheng0

02/05/2023 at 07:36AM

27
#171 - Aldiyar Amirov / @aldeeyar

03/18/2023 at 09:25PM

27
#172 - Carly Matson / @carlymatson

04/24/2023 at 01:21PM

28
#173 - onigomex / @onigomex

02/20/2023 at 12:24PM

29
#174 - Ben Kettle / @kett_ben

02/18/2023 at 12:04AM

29
#175 - Mequam BlueSpark / @MBluespark68823

03/15/2023 at 03:11AM

31
#176 - JuanP / @JuanP41938416

02/11/2023 at 02:52AM

31
#177 - Max Shen / @m4xshen

05/24/2023 at 06:35AM

31
#178 - Sumanth Yedoti / @sumanthyedoti

05/25/2023 at 06:04PM

33
#179 - Elton Kamami / @pixel_grid

02/03/2023 at 08:09PM

33
#180 - wei / @weixiaobaol

02/22/2023 at 06:34AM