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 @ 06: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 @ 13:31
:redi@w<CR>qqgal@qq@q"wpddfrDjddZZ

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

#47 Pete Johns / @johnsyweb - Score: 42 - 01/05/11 @ 13: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 @ 07: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 @ 05: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/25/12 @ 23: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 08:57AM

22
#2 - John Braxler / @braxler

09/10/2014 at 03:23PM

23
#3 - Kerson Hsiao / @KersonHsiao

01/15/2013 at 03:05AM

24
#4 - derp derp / @derp__

01/05/2011 at 08:25AM

24
#5 - ls lahrs / @lslah

01/05/2011 at 02:13PM

24
#6 - Ricardo Mendes / @locks

01/05/2011 at 10:10PM

24
#7 - Wei Dai / @clvv42

01/06/2011 at 01:49AM

24
#8 - Fer Enaf / @0x00C0FFEE

01/06/2011 at 02:09AM

24
#9 - Kevin Merlin / @mp3merlin

01/06/2011 at 08:57AM

24
#10 - Ujjwol Lamichhane / @Ujjwol

01/07/2011 at 02:49AM

24
#11 - Federico Galassi / @federicogalassi

01/07/2011 at 10:42AM

24
#12 - Mindaugas Mozūras / @mmozuras

01/07/2011 at 12:43PM

24
#13 - David Duponchel / @dduponchel

01/08/2011 at 10:33AM

24
#14 - Agus Lopez / @aguslr

01/10/2011 at 04:32PM

24
#15 -  Ikhsan Maulana / @ixandidu

01/15/2011 at 01:16AM

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

01/15/2011 at 08:23AM

24
#17 - drio / @drio

01/17/2011 at 03:39AM

24
#18 - Oleg Roshupkin / @jjjahson

01/20/2011 at 10:48PM

24
#19 - vg / @vimgolfer

03/02/2011 at 08:00AM

24
#20 - Raeez / @raeez

04/13/2011 at 09:45PM

24
#21 - Dragan Cvetinovic / @kawkafi

05/09/2011 at 12:13PM

24
#22 - Hu Junfeng / @junfeng

07/29/2011 at 06:04AM

24
#23 - Justin Love / @wondible

08/22/2011 at 10:10AM

24
#24 - William Dunand / @wdunand

11/16/2011 at 05:11PM

24
#25 - You-Siang Lin / @yslinnctu

12/04/2011 at 04:56PM

24
#26 - Marco Hinz / @_mhinz_

05/18/2013 at 10:05AM

25
#27 - dominique pellé / @vimgolfisto

01/06/2011 at 02:28AM

26
#28 - Mattiassich Ákos / @mattiassicha

01/05/2011 at 07:39AM

26
#29 - Matthew Draper / @_matthewd

01/05/2011 at 09:17AM

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

06/19/2011 at 02:41AM

26
#31 - Dave / @zzdave13

07/25/2011 at 12:46AM

26
#32 - Trevor Powell / @DoomedBunnies

03/19/2013 at 10:01PM

27
#33 - Tim Chase / @gumnos

01/05/2011 at 07:31AM

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

02/05/2011 at 08:09AM

27
#35 - Justin Knag / @justinknag

10/09/2014 at 11:25PM

28
#36 - tmr / @tmr314

09/10/2012 at 07:43AM

28
#37 - Joonas Pihlajamaa / @jokkebk

02/23/2014 at 01:15PM

29
#38 - Jim Garvin / @coderifous

01/05/2011 at 07:01AM

30
#39 - Øystein Walle / @oysteinwalle

07/07/2011 at 02:57AM

30
#40 - Gowtham Madhava / @gowthamgowtham

07/02/2012 at 09:37AM

31
#41 - Stephen Morrow / @yawmark

01/05/2011 at 06:58AM

31
#42 - Asmund Liseth / @Asmund_L

01/06/2011 at 01:31PM

31
#43 - James / @Dronak

09/23/2014 at 08:26PM

32
#44 - Henrik Nyh / @henrik

01/05/2011 at 06:50AM

32
#45 - Francisco Dibar / @frandibar

01/10/2011 at 04:28PM

33
#46 - Michael Spradling / @M1Sports20

01/11/2011 at 08:43PM

42
#47 - Pete Johns / @johnsyweb

01/05/2011 at 01:22PM

75
#48 - Vincent Cogne / @vincentcogne

01/05/2011 at 07:30AM

94
#49 - Oliver Christ / @0liverChrist

11/04/2013 at 05:04AM

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

02/25/2012 at 11:41PM