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 50d76e775539af000200006f

Transposition

Transpose the original lines in separate columns, one for each line.

Start file
ultricies, vehicula, felis, sed, auctor, aenean, euismod, semper, quam, dapibus
nibh, consequat, consequat, maecenas, sit, amet, mauris, justo, quis, porttitor
curabitur, pharetra, euismod, orci, sit, amet, ullamcorper, mi, tincidunt, et
vitae, lorem, at, mi, feugiat, convallis, ac, eget, dui, fusce
blandit, iaculis, nulla, sit, amet, dolor, nec, est, ornare, volutpat
End file
ultricies  nibh       curabitur    vitae      blandit
vehicula   consequat  pharetra     lorem      iaculis
felis      consequat  euismod      at         nulla
sed        maecenas   orci         mi         sit
auctor     sit        sit          feugiat    amet
aenean     amet       amet         convallis  dolor
euismod    mauris     ullamcorper  ac         nec
semper     justo      mi           eget       est
quam       quis       tincidunt    dui        ornare
dapibus    porttitor  et           fusce      volutpat

View Diff

1,5c1,10
< ultricies, vehicula, felis, sed, auctor, aenean, euismod, semper, quam, dapibus
< nibh, consequat, consequat, maecenas, sit, amet, mauris, justo, quis, porttitor
< curabitur, pharetra, euismod, orci, sit, amet, ullamcorper, mi, tincidunt, et
< vitae, lorem, at, mi, feugiat, convallis, ac, eget, dui, fusce
< blandit, iaculis, nulla, sit, amet, dolor, nec, est, ornare, volutpat
---
> ultricies  nibh       curabitur    vitae      blandit
> vehicula   consequat  pharetra     lorem      iaculis
> felis      consequat  euismod      at         nulla
> sed        maecenas   orci         mi         sit
> auctor     sit        sit          feugiat    amet
> aenean     amet       amet         convallis  dolor
> euismod    mauris     ullamcorper  ac         nec
> semper     justo      mi           eget       est
> quam       quis       tincidunt    dui        ornare
> dapibus    porttitor  et           fusce      volutpat

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 31 remaining solutions by signing in and submitting your own entry
#32 Global Maquereau / @GlobalMaquereau - Score: 97 - 12/24/12 @ 10:32
:%s/, /\r/g<CR>39kqq<C-V>9j$y10kqA  <Esc>p10j10dd@qA       <Esc>p10j10dd@qA    <Esc>p@<Esc>10j10dd@qA      <Esc>p10j10dd:wq<CR>

0 comments


Created by: @joe_di_castro

32 active golfers, 99 entries

Leaderboard (lowest score wins):
31
#1 - Urtica dioica / @udioica

12/24/2012 at 12:52PM

31
#2 - John Braxler / @braxler

09/17/2014 at 04:04PM

31
#3 - Peppa Pig / @PeppaPi95550250

08/17/2024 at 08:29AM

33
#4 - Kerson Hsiao / @KersonHsiao

12/24/2012 at 12:37PM

34
#5 - Petro Тrouq / @zulolosi

08/16/2013 at 06:23AM

36
#6 - Alec Goebel / @zego5360

01/04/2013 at 03:38AM

36
#7 - Joonas Pihlajamaa / @jokkebk

03/27/2014 at 10:25AM

36
#8 - retro / @tryphopp

01/20/2016 at 03:18AM

36
#9 - Иван / @wansmer

05/05/2023 at 07:55PM

36
#10 - nickGPT / @nickandbro

08/28/2024 at 07:05PM

37
#11 - Matt / @mcr05

03/21/2015 at 10:00AM

37
#12 - pftb12345 / @pftb12345

04/26/2015 at 03:23AM

39
#13 - Chasetopher / @chasetopherlee

04/29/2013 at 12:05AM

40
#14 - Javier Blanco / @jbgutierrez

12/26/2012 at 08:21PM

40
#15 - Édouard M'tou / @DouardM

01/01/2013 at 08:28PM

40
#16 - z0k / @z0k

01/05/2013 at 10:23PM

40
#17 - Sebastian Heil / @sebokopter

11/19/2013 at 02:50PM

41
#18 - Hubba / @HubbaBubbaFett

12/25/2012 at 12:51PM

41
#19 - じょんあば / @john_ababa

12/29/2012 at 04:30PM

41
#20 - hiding / @I_haveno_name

11/28/2013 at 10:03PM

42
#21 - h_east (トロッコ6個) / @h_east

12/24/2012 at 03:12PM

42
#22 - Oscar Friberg / @oscfri

02/10/2013 at 09:55PM

50
#23 - Duncan / @Duncan31503119

12/20/2021 at 09:45PM

51
#24 - Tullio Facchinetti / @toolleeo

07/25/2013 at 12:48PM

53
#25 - DR / @dde81

12/23/2012 at 10:50PM

53
#26 - Koo Zhengqun / @zhengqunkoo

05/05/2018 at 03:56AM

56
#27 - Asmund / @herrasbe

12/23/2012 at 11:16PM

71
#28 - Dmitry Zudochkin / @zudochkin

01/17/2013 at 07:26AM

81
#29 - Mauro Persano / @fzort

11/16/2014 at 10:07PM

85
#30 - RockerZZY / @rocker_zzy

05/31/2020 at 03:22PM