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

453 active golfers, 2120 entries

Leaderboard (lowest score wins):
16
#151 - Ronald Hawes / @1ronaldhawes

09/30/2023 at 04:43PM

16
#152 - Laurens De la Marche / @LaurensDLM

10/16/2023 at 01:37PM

16
#153 - Luoyb / @Luoyb

10/19/2023 at 04:40AM

16
#154 - Vimgolf User / @VimgolfU

10/19/2023 at 08:53AM

16
#155 - snkkid / @snkkid

10/25/2023 at 03:51PM

16
#156 - Kristian Jagd / @Jagdos

10/26/2023 at 01:04PM

16
#157 - Maurice Schmicking / @m_schmicking

11/01/2023 at 09:58PM

16
#158 - Sergej Karavajnij / @basyanya_sk

11/02/2023 at 07:35AM

16
#159 - Newdriver / @Newdriver10

11/21/2023 at 02:31AM

16
#160 - diwa / @LuoDi-Nate

02/02/2024 at 08:28AM

17
#161 - 蛙爹 / @Joe53572723

02/09/2023 at 03:17PM

17
#162 - vimgolf_spidey / @Spidey_Vimgolf

02/18/2023 at 12:00PM

17
#163 - Saheed Adeleye / @aadesaed

02/22/2023 at 08:06AM

17
#164 - GuilhermeGuilhermeGuilherme / @Caneta_Bic_Azul

02/23/2023 at 02:26AM

17
#165 - Peter Salvi / @salvipeter

02/24/2023 at 05:25PM

17
#166 - Eduardo Mezêncio / @eduardomezencio

02/26/2023 at 01:57PM

17
#167 - Chillbro / @Chillbrosaurus

02/27/2023 at 06:11PM

17
#168 - Mikael Brassman / @spoike

03/14/2023 at 10:34AM

17
#169 - THATCHILD / @THATCHILD21

03/20/2023 at 06:13AM

17
#170 - Aliasf / @rammenmaster96

04/01/2023 at 01:45AM

17
#171 - Isaac Harries / @IsaacHarries2

04/03/2023 at 05:07PM

17
#172 - Tinko Minko / @tandikula

04/13/2023 at 06:42AM

17
#173 - vimgolf_hjkl / @vimgolf_hjkl

04/19/2023 at 04:55AM

17
#174 - Gert / @csgert

05/23/2023 at 07:46PM

17
#175 - fengc / @fengc

06/13/2023 at 03:16AM

17
#176 - Robert Wild / @_rwild

06/18/2023 at 03:43PM

17
#177 - Thales / @ThalesII

06/23/2023 at 10:16PM

17
#178 - Aiden Yang / @aidenyangnn

07/11/2023 at 12:56PM

17
#179 - Dylan Etris / @DylanEtris

07/17/2023 at 08:15PM

17
#180 - kn95 / @phyque_zz

07/20/2023 at 03:42PM