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 51bd468414b59a0002000012

Across-Down Flip

Do this instead of the Sunday crossword.

Start file
pump mocha some
anis agios kbar
disintegrations
roc ice snidest
inarch readd   
  tee ser boite
spam mutational
eel copycat fed
clodhopper oils
tegua res urd  
   bleed enserf
seabeds ama leu
antihistaminics
goon cooly etui
alps tress byrl
End file
padri sect saga
union pele enol
miscatalog atop
psi rem dubbins
  nice chaleh  
match moo edict
ogee suppressor
cig retyped toe
horseraces aals
asana tar emmys
  tidbit unai  
skiddoo ors neb
oboe infidelity
mans tael recur
erst elds fusil

View Diff

1,15c1,15
< pump mocha some
< anis agios kbar
< disintegrations
< roc ice snidest
< inarch readd   
<   tee ser boite
< spam mutational
< eel copycat fed
< clodhopper oils
< tegua res urd  
<    bleed enserf
< seabeds ama leu
< antihistaminics
< goon cooly etui
< alps tress byrl
---
> padri sect saga
> union pele enol
> miscatalog atop
> psi rem dubbins
>   nice chaleh  
> match moo edict
> ogee suppressor
> cig retyped toe
> horseraces aals
> asana tar emmys
>   tidbit unai  
> skiddoo ors neb
> oboe infidelity
> mans tael recur
> erst elds fusil

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 16 remaining solutions by signing in and submitting your own entry
#17 Tim Chase / gumnos - Score: 46 - 06/16/13 @ 11:23
yG:%s/./\=@0[line('.')+(col('.')-1)*16-1]/g<CR>ZZ

zulolosi: Thanks, about the comment: @gumnos: In linear-algebra terms, it's a transposition. Notice that the file is square and characters at [X,Y] and [Y,X] swap places.

1 comment

#18 Petro Тrouq / zulolosi - Score: 52 - 06/16/13 @ 15:58
@=@0[lin<Tab>'.')+(co<Tab>'.')-1)*16-1]<CR>yGqz/.<CR>"=<CR>pXq223@zZZ

zulolosi: Comment by @gumnos: The challenge transposes the characters, swapping the chars at [X,Y] and [Y,X]. In linear-algebra terms, it's a transposition. Notice that the file is square and characters at [X,Y] and [Y,X] swap places.

1 comment

#19 Pedro Santos / pedrosans - Score: 52 - 02/21/14 @ 19:57
i*<CR><Esc>qqx?*<CR>Pquuqa:,$g/./norm! @q<CR>a<CR><Esc>$d0jq14@a:-,$d<CR>ZZ

0 comments

#20 RobertT / techrt2050 - Score: 67 - 07/13/13 @ 09:37
qq0"Axj.j.j.j.j.j.j.j.j.j.j.j.j.j.ggq14@qdG"AP0qq15lDo<Esc>P0q14@qkJxZZ

0 comments

#21 Timothée Gauthier / zmf_tim - Score: 68 - 07/10/13 @ 14:15
qa<C-V>14jdGo<CR><Esc>p<C-V><Esc>VGgJggq@a@a@a0@a@a@a@a@a@a0@a@a@a@a@a15Ddd:g/$<BS>^$/d<CR>ZZ

0 comments

Created by: udioica

21 active golfers, 37 entries

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

06/16/2013 at 08:51PM

24
#2 - Andreas Hagesjö / Ankhagge

05/08/2014 at 12:15AM

24
#3 - John Braxler / braxler

10/20/2014 at 05:41PM

24
#4 - John Goes / johnwgoes

05/10/2016 at 12:28AM

26
#5 - Vito / GodFather

07/07/2014 at 04:54AM

26
#6 - David Stensland / DavidStensland

05/20/2015 at 08:52PM

27
#7 - Jan Bundesmann / ixjab

04/01/2016 at 07:27AM

28
#8 - Victor Ramirez / virako

06/16/2013 at 11:19PM

28
#9 - Matthieu Crapet / mcr05

02/14/2015 at 09:07AM

29
#10 - Milind Ganjoo / mganjoo

03/04/2014 at 09:44AM

30
#11 - Tim Vim / vim_tim

06/21/2014 at 06:15PM

31
#12 - James Davis / tripvg

06/28/2013 at 08:46PM

31
#13 - Jon Krause / jkrause314

12/23/2015 at 04:31AM

41
#14 - Super Garbage / SuperGarbage0

08/24/2013 at 05:48PM

42
#15 - ———đίxίє—flαтlίиє——— / _dixie_flatline

07/24/2013 at 04:07AM

42
#16 - Dario Avitabile / tutticapaci

09/02/2014 at 07:22PM

46
#17 - Tim Chase / gumnos

06/16/2013 at 11:23AM

52
#18 - Petro Тrouq / zulolosi

06/16/2013 at 03:58PM

52
#19 - Pedro Santos / pedrosans

02/21/2014 at 07:57PM

67
#20 - RobertT / techrt2050

07/13/2013 at 09:37AM

68
#21 - Timothée Gauthier / zmf_tim

07/10/2013 at 02:15PM