Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Leaderboard, Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 4d247aa50947c63e260000a4

Happy New Year!

This is a simple new year's challenge.

Start file
Happy New Year!
End file
<H>  72,  Hex 48,  Octal 110
<a>  97,  Hex 61,  Octal 141
<p>  112,  Hex 70,  Octal 160
<p>  112,  Hex 70,  Octal 160
<y>  121,  Hex 79,  Octal 171
< >  32,  Hex 20,  Octal 040
<N>  78,  Hex 4e,  Octal 116
<e>  101,  Hex 65,  Octal 145
<w>  119,  Hex 77,  Octal 167
< >  32,  Hex 20,  Octal 040
<Y>  89,  Hex 59,  Octal 131
<e>  101,  Hex 65,  Octal 145
<a>  97,  Hex 61,  Octal 141
<r>  114,  Hex 72,  Octal 162
<!>  33,  Hex 21,  Octal 041

View Diff

1c1,15
< Happy New Year!
---
> <H>  72,  Hex 48,  Octal 110
> <a>  97,  Hex 61,  Octal 141
> <p>  112,  Hex 70,  Octal 160
> <p>  112,  Hex 70,  Octal 160
> <y>  121,  Hex 79,  Octal 171
> < >  32,  Hex 20,  Octal 040
> <N>  78,  Hex 4e,  Octal 116
> <e>  101,  Hex 65,  Octal 145
> <w>  119,  Hex 77,  Octal 167
> < >  32,  Hex 20,  Octal 040
> <Y>  89,  Hex 59,  Octal 131
> <e>  101,  Hex 65,  Octal 145
> <a>  97,  Hex 61,  Octal 141
> <r>  114,  Hex 72,  Octal 162
> <!>  33,  Hex 21,  Octal 041

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 40 remaining solutions by signing in and submitting your own entry
#41 Stephen Morrow / @yawmark - Score: 31 - 01/05/11 @ 14:58
:redi @a<CR>qqgalq14@q"apddfrDJxZZ

@yawmark: Credit to @henrik for this one.

1 comment

#42 Asmund Liseth / @Asmund_L - Score: 31 - 01/06/11 @ 21:31
:redi@w<CR>qqgal@qq@q"wpddfrDjddZZ

0 comments

#43 James / @Dronak - Score: 31 - 09/24/14 @ 03:26
:redi@a<CR>qqgalq14@q"apddj.kfrDZZ

0 comments

#44 Henrik Nyh / @henrik - Score: 32 - 01/05/11 @ 14:50
:redi @a<CR>qqgalq14@q"apddfrDjddZZ

0 comments

#45 Francisco Dibar / @frandibar - Score: 32 - 01/11/11 @ 00:28
:redi @a<CR>qqga q14@q"apddfrDjddZZ

0 comments

#46 Michael Spradling / @M1Sports20 - Score: 33 - 01/12/11 @ 04:43
:redi@w<<BS><CR>qqgal@qq@q"wpddfrDjddZZ

0 comments

#47 Pete Johns / @johnsyweb - Score: 42 - 01/05/11 @ 21:22
:red<Tab>@a<CR>qqgalq14@qcc<C-R>a<Esc>dT1x:%s!re.*\_s!<CR>ZZ

0 comments

#48 Vincent Cogne / @vincentcogne - Score: 75 - 01/05/11 @ 15:30
:map a mz:redi @p<CR>ga:redi end<CR><s-g>"ppdd`z<RIGHT><CR>aaaaaaaaaaaaaaaddZZ

0 comments

#49 Oliver Christ / @0liverChrist - Score: 94 - 11/04/13 @ 13:04
o<Esc>4ichar2nr(submatch(0)),<Esc>x"add:s/./\=printf("<%c>  %d,  Hex %x,  Octal %03o\r",<C-R>a<BS>/g<Left><Left>)<CR><CR>ddZZ

0 comments

#50 無ん垢の叫び / @john_ababa - Score: 445 - 02/26/12 @ 07:41
C<H>  72,  Hex 48,  Octal 110<CR><a>  97,  Hex 61,  Octal 141<CR><p>  112,  Hex 70,  Octal 160<CR><p>  112,  Hex 70,  Octal 160<CR><y>  121,  Hex 79,  Octal 171<CR>< >  32,  Hex 20,  Octal 040<CR><N>  78,  Hex 4e,  Octal 116<CR><e>  101,  Hex 65,  Octal 145<CR><w>  119,  Hex 77,  Octal 167<CR>< >  32,  Hex 20,  Octal 040<CR><Y>  89,  Hex 59,  Octal 131<CR><e>  101,  Hex 65,  Octal 145<CR><a>  97,  Hex 61,  Octal 141<CR><r>  114,  Hex 72,  Octal 162<CR><!>  33,  Hex 21,  Octal 041<Esc>ZZ

0 comments

Created by: @mattiassicha

50 active golfers, 118 entries

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

07/04/2012 at 03:57PM

22
#2 - John Braxler / @braxler

09/10/2014 at 10:23PM

23
#3 - Kerson Hsiao / @KersonHsiao

01/15/2013 at 11:05AM

24
#4 - derp derp / @derp__

01/05/2011 at 04:25PM

24
#5 - ls lahrs / @lslah

01/05/2011 at 10:13PM

24
#6 - Ricardo Mendes / @locks

01/06/2011 at 06:10AM

24
#7 - Wei Dai / @clvv42

01/06/2011 at 09:49AM

24
#8 - Fer Enaf / @0x00C0FFEE

01/06/2011 at 10:09AM

24
#9 - Kevin Merlin / @mp3merlin

01/06/2011 at 04:57PM

24
#10 - Ujjwol Lamichhane / @Ujjwol

01/07/2011 at 10:49AM

24
#11 - Federico Galassi / @federicogalassi

01/07/2011 at 06:42PM

24
#12 - Mindaugas Mozūras / @mmozuras

01/07/2011 at 08:43PM

24
#13 - David Duponchel / @dduponchel

01/08/2011 at 06:33PM

24
#14 - Agus Lopez / @aguslr

01/11/2011 at 12:32AM

24
#15 -  Ikhsan Maulana / @ixandidu

01/15/2011 at 09:16AM

24
#16 - Thomas Schönwälder / @Masei1988

01/15/2011 at 04:23PM

24
#17 - drio / @drio

01/17/2011 at 11:39AM

24
#18 - Oleg Roshupkin / @jjjahson

01/21/2011 at 06:48AM

24
#19 - vg / @vimgolfer

03/02/2011 at 04:00PM

24
#20 - Raeez / @raeez

04/14/2011 at 04:45AM

24
#21 - Dragan Cvetinovic / @kawkafi

05/09/2011 at 07:13PM

24
#22 - Hu Junfeng / @junfeng

07/29/2011 at 01:04PM

24
#23 - Justin Love / @wondible

08/22/2011 at 05:10PM

24
#24 - William Dunand / @wdunand

11/17/2011 at 01:11AM

24
#25 - You-Siang Lin / @yslinnctu

12/05/2011 at 12:56AM

24
#26 - Marco Hinz / @_mhinz_

05/18/2013 at 05:05PM

25
#27 - dominique pellé / @vimgolfisto

01/06/2011 at 10:28AM

26
#28 - Mattiassich Ákos / @mattiassicha

01/05/2011 at 03:39PM

26
#29 - Matthew Draper / @_matthewd

01/05/2011 at 05:17PM

26
#30 - not so punk :] / @notsopunk

06/19/2011 at 09:41AM

26
#31 - Dave / @zzdave13

07/25/2011 at 07:46AM

26
#32 - Trevor Powell / @DoomedBunnies

03/20/2013 at 05:01AM

27
#33 - Tim Chase / @gumnos

01/05/2011 at 03:31PM

27
#34 - h_east (DDD ready) / @h_east

02/05/2011 at 04:09PM

27
#35 - Justin Knag / @justinknag

10/10/2014 at 06:25AM

28
#36 - tmr / @tmr314

09/10/2012 at 02:43PM

28
#37 - Joonas Pihlajamaa / @jokkebk

02/23/2014 at 09:15PM

29
#38 - Jim Garvin / @coderifous

01/05/2011 at 03:01PM

30
#39 - Øystein Walle / @oysteinwalle

07/07/2011 at 09:57AM

30
#40 - Gowtham Madhava / @gowthamgowtham

07/02/2012 at 04:37PM

31
#41 - Stephen Morrow / @yawmark

01/05/2011 at 02:58PM

31
#42 - Asmund Liseth / @Asmund_L

01/06/2011 at 09:31PM

31
#43 - James / @Dronak

09/24/2014 at 03:26AM

32
#44 - Henrik Nyh / @henrik

01/05/2011 at 02:50PM

32
#45 - Francisco Dibar / @frandibar

01/11/2011 at 12:28AM

33
#46 - Michael Spradling / @M1Sports20

01/12/2011 at 04:43AM

42
#47 - Pete Johns / @johnsyweb

01/05/2011 at 09:22PM

75
#48 - Vincent Cogne / @vincentcogne

01/05/2011 at 03:30PM

94
#49 - Oliver Christ / @0liverChrist

11/04/2013 at 01:04PM

445
#50 - 無ん垢の叫び / @john_ababa

02/26/2012 at 07:41AM