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

481 active golfers, 2229 entries

Leaderboard (lowest score wins):
52
#421 - Garlic Bread / @GarlicB30592807

03/03/2023 at 05:49PM

52
#422 - Yongqi Li / @YongqiLi171268

05/22/2023 at 07:44AM

53
#423 - lucas.moon / @lucasmo20265566

03/15/2023 at 12:48PM

53
#424 - P37vo4WS / @p37vo4

05/18/2023 at 11:41AM

53
#425 - Sery Park / @sisi_with_vim

06/13/2023 at 05:18PM

53
#426 - vwv vwv / @snark3l

06/28/2023 at 12:06PM

53
#427 - Jake Shomer / @jake_shomer

08/28/2023 at 03:45PM

53
#428 - Karlo Bartolic / @fwslash

02/09/2024 at 07:18PM

54
#429 - 초롱이 / @treebird82

03/02/2023 at 06:42AM

54
#430 - Jake Shomer / @ShomerJake

08/15/2023 at 05:19PM

55
#431 - Bro / @SpeorgNot

09/17/2023 at 07:00PM

55
#432 - Kevin / @kebpiy

03/12/2024 at 04:44AM

58
#433 - 無所畏懼 / @littlepantstw

02/10/2023 at 07:49AM

58
#434 - Giang Duong / @GiangDu22019736

03/09/2024 at 11:17AM

59
#435 - ebs 2.1 / @ebstootired

02/08/2023 at 07:50PM

60
#436 - 楊育陞 / @bbnoir83

05/24/2023 at 06:38AM

60
#437 - No See See / @NoSeeplz

05/28/2023 at 01:07AM

60
#438 - Xuyi Meng / @xuyi_meng

06/08/2023 at 02:39AM

60
#439 - microjoint / @microjoint

04/11/2024 at 06:53AM

61
#440 - Matt DB / @MattDB12

12/22/2023 at 08:08PM

63
#441 - James Makela / @jamesmakela0

02/27/2023 at 01:35PM

64
#442 - Ward Quaghebeur / @WardQuaghebeur

05/16/2023 at 07:20PM

64
#443 - Matthew Slanker / @mpslanker

08/22/2023 at 05:02PM

65
#444 - ColeW - Warrior Jar / @quetzalColetl

03/06/2023 at 02:19AM

65
#445 - Joshua Stupplebeen / @joshstupplebeen

04/18/2023 at 08:31PM

65
#446 - Sami Tabet / @sfluor

02/09/2024 at 03:48PM

66
#447 - Gerrit Proessl / @g3rrit

04/12/2024 at 08:15AM

67
#448 - Egor Voronov / @do_syscall_64

05/25/2023 at 04:36PM

68
#449 - Jin-hyeok Kim / @JinhyeokKim12

03/10/2023 at 06:33AM

72
#450 - David Young / @dhyoung01

02/15/2023 at 07:55PM