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):
17
#211 - Arūnas Smaliukas / @ArunasSmaliukas

08/26/2023 at 01:27PM

17
#212 - Milan Blažek / @Somin13

09/05/2023 at 02:23PM

17
#213 - Michael Wiedfellner / @wiedfellne94556

09/13/2023 at 04:23PM

17
#214 - tien / @tien40766111

10/25/2023 at 02:40PM

17
#215 - taktiks2 / @taktiks02

11/02/2023 at 02:44PM

17
#216 - kipplekipple / @kipplekipple

11/04/2023 at 02:51PM

17
#217 - Matt Shen / @mattshen

01/24/2024 at 11:08AM

17
#218 - Penbu / @penbuvt

02/16/2024 at 02:29AM

17
#219 - CptMitten / @CptMitten

02/28/2024 at 01:34PM

17
#220 - Yejun Kang / @Rinnnt

03/21/2024 at 05:39PM

17
#221 - tk555 / @tk55513

05/03/2024 at 04:09AM

17
#222 - kbrashem / @kbrashem

05/09/2024 at 05:58PM

17
#223 - Joris / @CheeseAndChips

05/11/2024 at 10:16PM

17
#224 - Thermospore / @Thermospore

05/20/2024 at 10:03AM

17
#225 - cotarmanach / @cotarmanach

05/25/2024 at 08:33PM

17
#226 - Tsimon Dorakh / @Tsimon-Dorakh

06/10/2024 at 07:08AM

17
#227 - Homo Ludens / @BsMainly

07/05/2024 at 09:50PM

17
#228 - Felix / @ne0phyte

07/18/2024 at 09:23AM

17
#229 - Diwakar Singh Parmar / @parmardiwakar150

08/28/2024 at 10:59AM

17
#230 - x03n046 / @x03n046

09/10/2024 at 08:03AM

17
#231 - daniilsvirin / @daniilsvirin

10/15/2024 at 08:58AM

17
#232 - guyontristan / @guyontristan

10/20/2024 at 03:17PM

18
#233 - g-guy / @guydunigo

01/30/2023 at 01:24PM

18
#234 - でよ / @tada_kun8

01/31/2023 at 02:12PM

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

01/31/2023 at 04:28PM

18
#236 - Bruce Woodward / @b00ffer

02/02/2023 at 12:05AM

18
#237 - 马海洋 / @LG41bT7ZvqOdFl3

02/07/2023 at 02:23AM

18
#238 - Sushrut Shirole / @sushrutshirole

02/08/2023 at 01:13AM

18
#239 - Hamey / @unknownHamX

02/09/2023 at 11:06AM

18
#240 - John Huynh / @huynh_j93

02/13/2023 at 05:38PM