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

500 active golfers, 2310 entries

Leaderboard (lowest score wins):
19
#241 - Robberechts Arne / @ArneRobberechts

01/31/2023 at 07:48PM

19
#242 - tneeds / @tneeds12

02/04/2023 at 07:52AM

19
#243 - @AndrewRadev@hachyderm.io / @andrewradev

02/06/2023 at 12:58PM

19
#244 - David / @imdavidhwang

02/20/2023 at 06:24PM

19
#245 - Ahmed Mashalla / @Hahgaayyyy

02/24/2023 at 01:25PM

19
#246 - tapster / @tapster36955260

02/24/2023 at 04:47PM

19
#247 - Harrison Smith / @HarrisonSm97044

03/27/2023 at 12:00AM

19
#248 - jasonlee / @jasonle61136657

04/05/2023 at 03:38PM

19
#249 - Branimir Mirčetić / @BranimirMireti1

04/17/2023 at 02:28PM

19
#250 - diginator / @diginator1

04/26/2023 at 11:35PM

19
#251 - navytable / @navytable

06/18/2023 at 12:13AM

19
#252 - samuel erlands / @ErlandsSam52210

06/30/2023 at 11:36AM

19
#253 - phastasmn / @phastasmn

07/23/2023 at 09:10AM

19
#254 - Justin Llanos / @llanosj427

09/02/2023 at 07:33PM

19
#255 - Jamie / @JamJar00

01/05/2024 at 12:20PM

19
#256 - demostanis / @demostanis

01/09/2024 at 05:35PM

19
#257 - Yichao Wu / @MonusW

02/13/2024 at 02:01PM

19
#258 - Lily / @totallyuniquelily

05/08/2024 at 12:26PM

20
#259 - steve / @steve35773420

02/06/2023 at 07:38PM

20
#260 - Stefan / @__stefan_r__

02/07/2023 at 11:08PM

20
#261 - max lloyd / @maxlloyd2

02/16/2023 at 04:59PM

20
#262 - Creatingman / @Creatingman1

02/17/2023 at 12:00PM

20
#263 - tomcola / @tomcola72

03/01/2023 at 05:18PM

20
#264 - Zephyr On Call / @zephyr_on_call

03/05/2023 at 06:47PM

20
#265 - Jake / @thejakenixon

03/17/2023 at 07:27PM

20
#266 - Yvan Chen / @Yifan913181

06/25/2023 at 11:32PM

20
#267 - John Khoo / @jtacktf

08/04/2023 at 10:16AM

20
#268 - Melker Fläskberg / @Mawkler

08/24/2023 at 11:15AM

20
#269 - xiang / @xiang56002997

08/29/2023 at 12:33AM

20
#270 - A C / @r4mmerAC

09/13/2023 at 01:25AM