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 53e1d5a0f201bc0002226501

120 Degrees

Rotate that triangle.

Start file
   1
  9 2
 8   3
7 6 5 4
End file
   4
  3 5
 2   6
1 9 8 7

View Diff

1,4c1,4
<    1
<   9 2
<  8   3
< 7 6 5 4
---
>    4
>   3 5
>  2   6
> 1 9 8 7

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 94 remaining solutions by signing in and submitting your own entry
#95 alex annan / alexannan - Score: 26 - 01/01/15 @ 10:34
r4wR3 5<Esc>wr2wr6wR1 9 8 7<Esc>ZZ

0 comments

#96 Carlos A Henríquez Q / lagunex - Score: 26 - 01/18/15 @ 15:41
r4wR3 5<Esc>wr2wr6wR1 9 8 7<Esc>ZZ

0 comments

#97 Oliver Christ / 0liverChrist - Score: 26 - 02/08/15 @ 21:01
3<C-A>+6<C-X>l3<C-A>+6<C-X>l3<C-A>+R1 9 8 7<Esc>ZZ

0 comments

#98 Dimitar Dimitrov / kurkale6ka - Score: 26 - 03/18/16 @ 12:14
qq/[1-6]<CR>3<C-A>q5@qqq<CR>6<C-X>q2@qZZ

0 comments

#99 JP / jpbida - Score: 27 - 08/18/14 @ 02:41
r4wr3wr5wr2wr6wr1wC9 8 7<Esc>ZZ

0 comments

#100 Cristian Lupașcu / clupasq - Score: 27 - 02/08/16 @ 15:35
3<C-A>j3<C-A>j.jbb.w.w.06<C-X>l-6.-6.ZZ

0 comments

#101 Matias Russitto / mrussitto - Score: 28 - 08/06/14 @ 18:19
r4wr3wr5wr2wr6wr1wr9wr8wr7ZZ

0 comments

#102 Gerald Tilma / GeraldTilma - Score: 28 - 10/20/15 @ 02:07
r4wr3wr5wr2wr6wr1wr9wr8wr7ZZ

0 comments

#103 Daniel Bellenger / DanielBellenger - Score: 28 - 10/16/16 @ 17:08
r4wr3wr5wr2wr6wr1wr9wr8wr7ZZ

0 comments

#104 Dmitry Teslenko / krab_mozga - Score: 29 - 08/13/14 @ 13:48
r4wr3wr5wf2<Esc>r2wr6wC1 9 8 7<Esc>ZZ

0 comments

#105 shock_one / shock_one - Score: 29 - 08/17/14 @ 15:43
3<C-A>ww.ww.ww.w.w.ggw6<C-X>ww.ww.:x<CR>

0 comments

#106 AC / quadface - Score: 29 - 08/23/14 @ 05:58
r4jhr3$r5jlr6F8r2GC1 9 8 7<Esc>ZZ

0 comments

#107 Glauco Pires / grpires - Score: 30 - 11/26/14 @ 13:37
qq3<C-A>jlq3@q2ggqq6<C-X>+q2@qw3<C-A>w3<C-A>ZZ

0 comments

#108 Song Zheng / songz - Score: 33 - 08/06/14 @ 21:54
<C-A><C-A><C-A>jhr3l3<C-A>jbr2f3r6j0r1wr9wr8wr7ZZ

0 comments

#109 Zudochkin Dmitry / vredniy - Score: 33 - 02/20/15 @ 11:27
:%s/\d/\=(submatch(0)+2)%9+1/g<CR>ZZ

0 comments

#110 Matthias Bilger / m4n2b - Score: 35 - 08/10/14 @ 04:19
:%s/\d/\=(submatch(0)+2)%9+1/g<CR>:wq<CR>

0 comments

#111 Formally Dallin / FormallyDallin - Score: 35 - 03/24/15 @ 21:58
r4<CR>r3<Right><Right>r5<Down><Right>r60<Right>r2<Down><Left>r1<Right><Right>r9<Right><Right>r8<Right><Right>r7ZZ

0 comments

#112 Bryan / BryanLin1103 - Score: 37 - 08/10/14 @ 22:54
r4wr4r3wr5w2r2x i <Esc>llr6wr1wr9wr8wr7ZZ

0 comments

#113 Peter Lustig / germecon - Score: 38 - 08/06/14 @ 17:43
jjjkkkjkr4wr3wur3wr5wr2wr6wC1 9 8 7<Esc>ZZ

0 comments

#114 ltn614 / ltn614 - Score: 40 - 09/21/15 @ 03:52
:%s:[1-6]:\=submatch(0)+3:g<CR>r1kwr2kwr3ZZ

0 comments

#115 Saher El-Neklawy / saherneklawy - Score: 42 - 08/06/14 @ 08:59
:%s/\d/\=(str2nr(submatch(0))+3)%9/g<CR>wr9ZZ

0 comments

#116 Justin Knag / justinknag - Score: 57 - 08/28/14 @ 11:50
xGPlxz$$PXullxggpjXjjPlxlkplxkPhxkjli <C-C><C-C>lxjbPlxjwPlxkkpZZ

0 comments

#117 io / jesushadGA - Score: 60 - 08/10/14 @ 18:18
xjjjhhpXllllllpXkkkphjxjjpXlkllpXkhhpjXjlllpXkkpXhhjhP:w<CR>:q<CR>

0 comments

#118 ЕвгенийВ / imater - Score: 69 - 10/27/14 @ 12:18
r4wr3wr6R1<Esc>uwR1 9 8 7<Esc>uuuuuuuuuuuuuuuuuuuuur4wr3wr5wr2wr6wR1 9 8 7<Esc>ZZ

0 comments

Created by: udioica

118 active golfers, 323 entries

Leaderboard (lowest score wins):
14
#1 - John Braxler / braxler

08/06/2014 at 07:58PM

14
#2 - Petro Тrouq / zulolosi

08/06/2014 at 08:10PM

14
#3 - Urtica dioica / udioica

08/06/2014 at 08:51PM

14
#4 - MP / Enemy_m

08/07/2014 at 08:06PM

14
#5 - Jake Elder / JpegMe

08/07/2014 at 08:30PM

14
#6 - Rafee / rafee_buet

08/11/2014 at 08:06AM

14
#7 - Bart / oneofmanybarts

08/12/2014 at 06:20AM

14
#8 - Phil Runninger / PhilRunninger

08/14/2014 at 05:53PM

14
#9 - ———đίxίє—flαтlίиє——— / _dixie_flatline

08/15/2014 at 07:18PM

14
#10 - Kerson Hsiao / KersonHsiao

08/17/2014 at 05:32AM

14
#11 - Fan Zhang / 2bDeactivat3d

08/18/2014 at 12:43AM

14
#12 - Mike Rayner / mikesfake

08/23/2014 at 04:07PM

14
#13 - Daniel Helfrich / lazyman114

08/28/2014 at 11:13PM

14
#14 - Pierre Stévens / pierre_stv

10/05/2014 at 05:22PM

14
#15 - Ivan Brennan / ivanbrennan

12/07/2014 at 12:08AM

14
#16 - kimber gonzalez / kimberlycreates

01/07/2015 at 08:05PM

14
#17 - Steven Lu / stevenlu443

02/07/2015 at 05:45AM

14
#18 - pftb12345 / pftb12345

04/04/2015 at 11:52AM

14
#19 - Raj / brshenoy

04/14/2015 at 03:30PM

14
#20 - Benny Wong / bdotdub

04/14/2015 at 04:22PM

14
#21 - Evan Coleman / edc1591

04/14/2015 at 04:23PM

14
#22 - Adrien Fabre / statox42

06/07/2015 at 09:12PM

14
#23 - Walker Boh / walker_boh

10/12/2015 at 10:55AM

14
#24 - Jon Krause / jkrause314

12/18/2015 at 09:53PM

14
#25 - James Burns / James_Ian_Burns

02/26/2016 at 07:28PM

14
#26 - jj johnson / jcassj1

08/23/2016 at 12:54PM

14
#27 - Jonathan Lao-Kan / jlaokan

11/14/2016 at 11:33AM

16
#28 - Siddhartha R Thota / tweetingsid

08/11/2014 at 08:47AM

16
#29 - Jonas Nockert / lemonad

11/19/2015 at 08:02PM

16
#30 - Bill Ruddock / biinari

10/25/2016 at 03:01PM

17
#31 - Brian Peck / bpeck614

08/06/2014 at 05:05PM

17
#32 - John Meisner / jmeisned

08/06/2014 at 07:03PM

17
#33 - James T. Huggett / Jmeshka

09/04/2014 at 09:50AM

18
#34 - Kai Yuan / kentyuan

08/06/2014 at 09:04AM

18
#35 - Pete Johns / johnsyweb

08/06/2014 at 11:51AM

18
#36 - Caek / Caek_

08/07/2014 at 01:30AM

18
#37 - Ole Hansen / 0hansen

08/07/2014 at 07:40AM

18
#38 - Marcin Sza / coot_

08/07/2014 at 01:06PM

18
#39 - Jared Meyering / Jmeyering

08/07/2014 at 06:46PM

18
#40 - Grigoriy Alexeev / GrigoriyAlexeev

08/07/2014 at 10:52PM

18
#41 - Roman Charushin / lompee

08/08/2014 at 01:06PM

18
#42 - id / tunguska112

08/11/2014 at 06:15AM

18
#43 - Michael Stein / 4NickelSoftware

08/12/2014 at 10:51PM

18
#44 - jabular / jabular

08/15/2014 at 01:42PM

18
#45 - farseer / FarseerSee2012

08/17/2014 at 10:52AM

18
#46 - booom / ateukme

08/17/2014 at 10:19PM

18
#47 - Haoxuan Yue / yuehaoxuanar

08/20/2014 at 03:09AM

18
#48 - Daniel Beck / daniel_beck_il

08/30/2014 at 10:07AM

18
#49 - Vim Golfer / golfing_vim

09/04/2014 at 06:52PM

18
#50 - Jeff / just_geophree

09/13/2014 at 10:37PM

18
#51 - Michael Comerford / MComerford1

09/19/2014 at 01:36PM

18
#52 - BurntBrainSoup / BurntBrainSoup

11/12/2014 at 12:04AM

18
#53 - mark0829 / mark0829

02/02/2015 at 08:56AM

18
#54 - xieyh11 / xieyh11

02/28/2015 at 04:09AM

18
#55 - diogovk / diogovk

05/08/2015 at 07:23PM

18
#56 - Alan Turing / alantrng

11/14/2016 at 07:41AM

19
#57 - Zapata / Incredible_JFP

08/21/2014 at 06:40PM

19
#58 - Matthieu Crapet / mcr05

02/22/2015 at 07:16PM

20
#59 - Heath Patterson / HeathPatterson

08/06/2014 at 07:55PM

20
#60 - Marco Biasini / biasmv

08/09/2014 at 08:15PM

20
#61 - RobertT / techrt2050

08/10/2014 at 03:36AM

20
#62 - Chenut Ludovic / 7Brwa7

04/08/2016 at 08:30AM

21
#63 - Domon / Domon

08/06/2014 at 08:04AM

21
#64 - Larry Boltovskoi / larrybolt

08/06/2014 at 08:15AM

21
#65 - Ram Tamtam / ramtamtamtam

08/06/2014 at 10:43AM

21
#66 - fa / twiteciop

08/06/2014 at 03:22PM

21
#67 - Pedro Santos / pedrosans

08/06/2014 at 06:50PM

21
#68 - Lance Olsen / muirbot

08/06/2014 at 11:57PM

21
#69 - Daniel / dazn159

08/15/2014 at 06:48PM

21
#70 - Jakob / jajob

10/14/2014 at 07:38PM

21
#71 - Sabiki94@ブルスクの人 / _jptomoya

10/17/2014 at 02:14PM

21
#72 - eBrnd / eBrnd

11/02/2014 at 03:31PM

21
#73 - Alain / ducouloa

11/30/2015 at 08:40PM

21
#74 - Ryan van Rensburg / rdvr001

07/28/2016 at 05:30PM

21
#75 - Kyouma / kyoumaJohn

10/14/2016 at 08:50PM

22
#76 - James / Dronak

08/13/2014 at 02:44AM

22
#77 - Will / w_labranche

10/15/2016 at 06:37PM

24
#78 - JonathanStarnes / JON_STARNES

08/07/2014 at 05:25AM

24
#79 - Carlos López / morrizon

08/09/2014 at 01:10PM

24
#80 - gybilis / gybilis

02/13/2015 at 11:21PM

25
#81 - Kolja Wilcke / 01k

08/07/2014 at 11:13AM

25
#82 - Dario Avitabile / tutticapaci

09/05/2014 at 09:17PM

25
#83 - Dominic Nunes / portOdin

09/06/2014 at 11:23PM

25
#84 - madka / lachrimae_pavan

09/07/2014 at 03:44PM

26
#85 - Tom Cammann / tea_sea

08/06/2014 at 08:35AM

26
#86 - Bednarik Boldizsar / bboldi

08/06/2014 at 02:37PM

26
#87 - Tj / yrddy

08/13/2014 at 05:18AM

26
#88 - Mattias Fransson / azzidoos

09/08/2014 at 04:22PM

26
#89 - Les Moonvest / davidmh

09/09/2014 at 04:52AM

26
#90 - Jonas / j0na3

09/12/2014 at 08:53PM

26
#91 - Daniel Pham / dany_pham

10/11/2014 at 04:03PM

26
#92 - kungfuchad / kungfuchad

11/04/2014 at 12:33PM

26
#93 - Jan Novak / odpadnimail

11/20/2014 at 02:50AM

26
#94 - Nicolas Dascanio / NicoDascanio

11/25/2014 at 08:37PM

26
#95 - alex annan / alexannan

01/01/2015 at 10:34AM

26
#96 - Carlos A Henríquez Q / lagunex

01/18/2015 at 03:41PM

26
#97 - Oliver Christ / 0liverChrist

02/08/2015 at 09:01PM

26
#98 - Dimitar Dimitrov / kurkale6ka

03/18/2016 at 12:14PM

27
#99 - JP / jpbida

08/18/2014 at 02:41AM

27
#100 - Cristian Lupașcu / clupasq

02/08/2016 at 03:35PM

28
#101 - Matias Russitto / mrussitto

08/06/2014 at 06:19PM

28
#102 - Gerald Tilma / GeraldTilma

10/20/2015 at 02:07AM

28
#103 - Daniel Bellenger / DanielBellenger

10/16/2016 at 05:08PM

29
#104 - Dmitry Teslenko / krab_mozga

08/13/2014 at 01:48PM

29
#105 - shock_one / shock_one

08/17/2014 at 03:43PM

29
#106 - AC / quadface

08/23/2014 at 05:58AM

30
#107 - Glauco Pires / grpires

11/26/2014 at 01:37PM

33
#108 - Song Zheng / songz

08/06/2014 at 09:54PM

33
#109 - Zudochkin Dmitry / vredniy

02/20/2015 at 11:27AM

35
#110 - Matthias Bilger / m4n2b

08/10/2014 at 04:19AM

35
#111 - Formally Dallin / FormallyDallin

03/24/2015 at 09:58PM

37
#112 - Bryan / BryanLin1103

08/10/2014 at 10:54PM

38
#113 - Peter Lustig / germecon

08/06/2014 at 05:43PM

40
#114 - ltn614 / ltn614

09/21/2015 at 03:52AM

42
#115 - Saher El-Neklawy / saherneklawy

08/06/2014 at 08:59AM

57
#116 - Justin Knag / justinknag

08/28/2014 at 11:50AM

60
#117 - io / jesushadGA

08/10/2014 at 06:18PM

69
#118 - ЕвгенийВ / imater

10/27/2014 at 12:18PM