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 38 remaining solutions by signing in and submitting your own entry
#39 Gowtham Madhava / @gowthamgowtham - Score: 30 - 07/02/12 @ 09:37
:redi@"<CR>qagalq14@apddfrd$<Down>ddZZ

0 comments

#40 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

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

0 comments

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

0 comments

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

0 comments

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

0 comments

#45 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

#46 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

#47 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

#48 無ん垢の叫び / @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

48 active golfers, 115 entries

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

07/04/2012 at 08:57AM

8ig-egq0_normal
22
#2 - John Braxler / @braxler

09/10/2014 at 03:23PM

4654945923_eb2c60ee5f_normal
23
#3 - Kerson Hsiao / @KersonHsiao

01/15/2013 at 03:05AM

Default_profile_6_normal
24
#4 - derp derp / @derp__

01/05/2011 at 08:25AM

Fotos-0259_normal
24
#5 - ls lahrs / @lslah

01/05/2011 at 02:13PM

8vhfldr8_normal
24
#6 - Ricardo Mendes / @locks

01/05/2011 at 10:10PM

Me-small_normal
24
#7 - Wei Dai / @clvv42

01/06/2011 at 01:49AM

Daruma_normal
24
#8 - Fer Enaf / @0x00C0FFEE

01/06/2011 at 02:09AM

48983_1546896881_9578_q_normal
24
#9 - Kevin Merlin / @mp3merlin

01/06/2011 at 08:57AM

The-milky-way-mardi-khola-007_normal
24
#10 - Ujjwol Lamichhane / @Ujjwol

01/07/2011 at 02:49AM

Fepic_normal
24
#11 - Federico Galassi / @federicogalassi

01/07/2011 at 10:42AM

1121final_normal
24
#12 - Mindaugas Mozūras / @mmozuras

01/07/2011 at 12:43PM

Default_profile_1_normal
24
#13 - David Duponchel / @dduponchel

01/08/2011 at 10:33AM

Default_profile_3_normal
24
#14 - Agus Lopez / @aguslr

01/10/2011 at 04:32PM

Untitled_2_normal
24
#15 -  Ikhsan Maulana / @ixandidu

01/15/2011 at 01:16AM

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

01/15/2011 at 08:23AM

29ed1f20888463b3b72bd9fed88a79b8_normal
24
#17 - drio / @drio

01/17/2011 at 03:39AM

4_normal
24
#18 - Oleg Roshupkin / @jjjahson

01/20/2011 at 10:48PM

Untitled_normal
24
#19 - vg / @vimgolfer

03/02/2011 at 08:00AM

Raeez_normal
24
#20 - Raeez / @raeez

04/13/2011 at 09:45PM

Ja_u_central_parku-mala_normal
24
#21 - Dragan Cvetinovic / @kawkafi

05/09/2011 at 12:13PM

Avatar-small_normal
24
#22 - Hu Junfeng / @junfeng

07/29/2011 at 06:04AM

Jlove201003sq_normal
24
#23 - Justin Love / @wondible

08/22/2011 at 10:10AM

Default_profile_6_normal
24
#24 - William Dunand / @wdunand

11/16/2011 at 05:11PM

Gintoki_normal
24
#25 - You-Siang Lin / @yslinnctu

12/04/2011 at 04:56PM

7bbd949b345fcbcfd812b231aed89f99_normal
24
#26 - Marco Hinz / @_mhinz_

05/18/2013 at 10:05AM

Dom-50_normal
25
#27 - dominique pellé / @vimgolfisto

01/06/2011 at 02:28AM

Default_profile_0_normal
26
#28 - Mattiassich Ákos / @mattiassicha

01/05/2011 at 07:39AM

E55df1cc7d5fdb4ae9bc2afcb9afe7e4_normal
26
#29 - Matthew Draper / @_matthewd

01/05/2011 at 09:17AM

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

06/19/2011 at 02:41AM

Uwe_horns_by_joao_normal
26
#31 - Dave / @zzdave13

07/25/2011 at 12:46AM

Bunnies_normal
26
#32 - Trevor Powell / @DoomedBunnies

03/19/2013 at 10:01PM

Ewbdmdtg_normal
27
#33 - Tim Chase / @gumnos

01/05/2011 at 07:31AM

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

02/05/2011 at 08:09AM

Default_profile_1_normal
28
#35 - tmr / @tmr314

09/10/2012 at 07:43AM

Netti_pihlajo1_lthumb_normal
28
#36 - Joonas Pihlajamaa / @jokkebk

02/23/2014 at 01:15PM

Jimavatar_normal
29
#37 - Jim Garvin / @coderifous

01/05/2011 at 07:01AM

Avatar_normal
30
#38 - Øystein Walle / @oysteinwalle

07/07/2011 at 02:57AM

Image_normal
30
#39 - Gowtham Madhava / @gowthamgowtham

07/02/2012 at 09:37AM

Gravatar_normal
31
#40 - Stephen Morrow / @yawmark

01/05/2011 at 06:58AM

Gravatar_normal
31
#41 - Asmund Liseth / @Asmund_L

01/06/2011 at 01:31PM

2_normal
32
#42 - Henrik Nyh / @henrik

01/05/2011 at 06:50AM

Default_profile_6_normal
32
#43 - Francisco Dibar / @frandibar

01/10/2011 at 04:28PM

Default_profile_4_normal
33
#44 - Michael Spradling / @M1Sports20

01/11/2011 at 08:43PM

Vcwwccib_normal
42
#45 - Pete Johns / @johnsyweb

01/05/2011 at 01:22PM

Avatar_normal
75
#46 - Vincent Cogne / @vincentcogne

01/05/2011 at 07:30AM

Default_profile_2_normal
94
#47 - Oliver Christ / @0liverChrist

11/04/2013 at 05:04AM

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

02/25/2012 at 11:41PM