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):
18
#61 - Niko Sten / @nisteeni

03/02/2023 at 03:56PM

18
#62 - Delusi Van Houtan / @VanDelusi

03/04/2023 at 02:28PM

18
#63 - Fati Haziri / @BigKingFati

03/19/2023 at 02:58PM

19
#64 - Robberechts Arne / @ArneRobberechts

01/31/2023 at 07:48PM

19
#65 - tneeds / @tneeds12

02/04/2023 at 07:52AM

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

02/06/2023 at 12:58PM

19
#67 - David / @imdavidhwang

02/20/2023 at 06:24PM

19
#68 - Ahmed Mashalla / @Hahgaayyyy

02/24/2023 at 01:25PM

19
#69 - tapster / @tapster36955260

02/24/2023 at 04:47PM

19
#70 - satetheus-vimgolf / @SVimgolf

03/14/2023 at 04:47PM

20
#71 - steve / @steve35773420

02/06/2023 at 07:38PM

20
#72 - Stefan / @__stefan_r__

02/07/2023 at 11:08PM

20
#73 - max lloyd / @maxlloyd2

02/16/2023 at 04:59PM

20
#74 - Creatingman / @Creatingman1

02/17/2023 at 12:00PM

20
#75 - tomcola / @tomcola72

03/01/2023 at 05:18PM

20
#76 - Zephyr On Call / @zephyr_on_call

03/05/2023 at 06:47PM

20
#77 - Jake Nixon / @thejakenixon

03/17/2023 at 07:27PM

21
#78 - Bharath Hegde / @BharathIHegdeI

02/02/2023 at 02:06PM

21
#79 - Anthony Chao / @AnthonyRChao

02/03/2023 at 02:58AM

21
#80 - Jay Solana / @JaySolana3

02/07/2023 at 05:49AM

21
#81 - dermacon / @der_maconator

02/14/2023 at 09:46PM

21
#82 - D G G / @DGJourneyman

02/20/2023 at 03:29AM

21
#83 - yan / @yan59505478

02/26/2023 at 04:36AM

22
#84 - Thiago Becker / @beckert

02/07/2023 at 12:53PM

22
#85 - Aliasf / @rammenmaster96

02/09/2023 at 04:31AM

22
#86 - Tunian Grey / @salmonianpink

02/26/2023 at 09:21AM

22
#87 - 👌 / @whymonsieur

03/16/2023 at 06:03AM

22
#88 - Ivan Ivankovic / @ivankoi

03/19/2023 at 12:18AM

22
#89 - Sergio / @SergioVl12

03/20/2023 at 05:09AM

22
#90 - RosaTryp / @RosaTryp

03/20/2023 at 04:28PM