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):
33
#181 - 박준서 / @junseo_12335

03/18/2023 at 12:28PM

34
#182 - Hugo Tai / @HugoTai100

02/09/2023 at 08:18AM

34
#183 - Jakob Föger / @drvolcano86

02/17/2023 at 11:39AM

34
#184 - Neovea Neovea / @VimGolferSTKM

05/24/2023 at 07:54AM

36
#185 - z00master / @z00master

03/29/2023 at 09:43PM

36
#186 - pbwn / @pbwn

04/08/2023 at 07:22AM

37
#187 - 2021deej / @2021Deej

02/16/2023 at 04:58PM

37
#188 - Selvaganapathy P / @canabady

03/17/2023 at 01:07PM

37
#189 - Dominik Filker / @DFilker

04/23/2023 at 08:51PM

37
#190 - GongChaorui / @GChaorui

05/15/2023 at 03:25PM

38
#191 - Tran Dinh Trung / @tdtrung17693

03/11/2023 at 02:19AM

38
#192 - Hassan Salehi / @DevSalehi

04/22/2023 at 02:30PM

38
#193 - Volodymyr Masliy / @skipua

05/19/2023 at 09:34AM

39
#194 - Nitin Madnani / @haikuman

02/23/2023 at 11:34PM

39
#195 - elhobb / @elhobb1

03/22/2023 at 01:38PM

41
#196 - El Tots / @totoruiz1432

03/15/2023 at 02:18AM

41
#197 - 7733865@qq.com / @tjxwg

06/02/2023 at 07:46AM

42
#198 - SmoggyFog / @SmoggyFog

05/27/2023 at 01:15AM

43
#199 - glock / @mrgglock

03/14/2023 at 06:24PM

43
#200 - Cyrus Kirk / @cyrusjkirk

05/10/2023 at 08:24AM

44
#201 - Craig Ferguson / @_craigfe

04/09/2023 at 09:56PM

45
#202 - John Clara / @johnanthclara

04/19/2023 at 04:39AM

46
#203 - Xpox0 / @Xpox01

03/02/2023 at 12:24PM

46
#204 - U G / @rozeannehd

03/19/2023 at 04:38AM

46
#205 - Vftdan / @vftdan

03/24/2023 at 08:26AM

46
#206 - Jordan Woods / @JordanW09204552

06/08/2023 at 04:29AM

47
#207 - Aarya / @aaryabhatia6

05/07/2023 at 02:00AM

48
#208 - Phi / @Phi_W5

03/08/2023 at 12:09AM

48
#209 - Evgeniy Fedorov / @EvgeniyFed8106

04/08/2023 at 12:25PM

49
#210 - Mateusz / @Mateusz38377202

04/07/2023 at 12:11PM