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

553 active golfers, 2537 entries

Leaderboard (lowest score wins):
97
#541 - bluedeep / @XBluedeep

05/31/2023 at 03:22AM

101
#542 - Martin Sarosi / @RoganJoshua

02/07/2023 at 01:04PM

103
#543 - Felz33 / @felz33

06/05/2023 at 03:01AM

104
#544 - nivethan / @nivethan_me

07/27/2023 at 08:09PM

108
#545 - congve1 / @congve1

02/01/2023 at 09:19AM

113
#546 - 하구레77 / @HonuxJ

07/21/2023 at 08:19AM

118
#547 - Thomas Li / @tlupenn

06/26/2023 at 11:33PM

122
#548 - Niranjan Ghule / @ghuleniranjan

06/19/2023 at 04:03PM

127
#549 - Jq / @corsac_ua

04/05/2024 at 11:51PM

131
#550 - YZY / @JOKERKINGDOMX

06/19/2023 at 08:03AM

190
#551 - Thomas Hiron / @thomashiron

02/20/2023 at 10:07AM

220
#552 - Luis Fernando Rodríguez Vargas / @LuisFerRodVar

04/17/2024 at 12:20AM

275
#553 - KingSann / @iferkey

09/13/2023 at 03:34AM