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):
16
#31 - quan ngo trong / @quanngotrong1

03/01/2023 at 02:55PM

16
#32 - BLOO / @BLOOpota

03/01/2023 at 09:32PM

16
#33 - 黄高昂 / @suewiq

03/02/2023 at 05:38AM

16
#34 - vimgolfer / @vimgolfer2023

03/02/2023 at 07:10AM

16
#35 - jon smith / @jotono91472250

03/04/2023 at 12:06AM

16
#36 - mevmev / @mevmev8

03/04/2023 at 01:17PM

16
#37 - quemeraisc / @quemeraisc

03/10/2023 at 01:27PM

16
#38 - Patrykduda / @Patrykduda17

03/13/2023 at 07:12PM

16
#39 - nie_zx / @niezx2

03/14/2023 at 07:54AM

16
#40 - popexizhi / @popexizhi

03/14/2023 at 11:26AM

17
#41 - 蛙爹 / @Joe53572723

02/09/2023 at 03:17PM

17
#42 - vimgolf_spidey / @Spidey_Vimgolf

02/18/2023 at 12:00PM

17
#43 - Saheed Adeleye / @aadesaed

02/22/2023 at 08:06AM

17
#44 - GuilhermeGuilhermeGuilherme / @Caneta_Bic_Azul

02/23/2023 at 02:26AM

17
#45 - Peter Salvi / @salvipeter

02/24/2023 at 05:25PM

17
#46 - Eduardo Mezêncio / @eduardomezencio

02/26/2023 at 01:57PM

17
#47 - Chillbro / @Chillbrosaurus

02/27/2023 at 06:11PM

17
#48 - Mikael Brassman / @spoike

03/14/2023 at 10:34AM

17
#49 - THATCHILD / @THATCHILD21

03/20/2023 at 06:13AM

18
#50 - g-guy / @guydunigo

01/30/2023 at 01:24PM

18
#51 - でよ / @tada_kun8

01/31/2023 at 02:12PM

18
#52 - ⚫ hgtp://Shifor 🛠️ / @shifor_gnome

01/31/2023 at 04:28PM

18
#53 - Bruce Woodward / @b00ffer

02/02/2023 at 12:05AM

18
#54 - 马海洋 / @LG41bT7ZvqOdFl3

02/07/2023 at 02:23AM

18
#55 - Sushrut Shirole / @sushrutshirole

02/08/2023 at 01:13AM

18
#56 - Hamey / @unknownHamX

02/09/2023 at 11:06AM

18
#57 - John Huynh / @huynh_j93

02/13/2023 at 05:38PM

18
#58 - 王扎尔 / @wngzhr2

02/15/2023 at 09:30AM

18
#59 - hex / @hexneth

02/26/2023 at 11:19PM

18
#60 - Satsuki Toshino / @asbestosLand

02/28/2023 at 12:17PM