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 580c21b5c177c54b0d067069

Start coding format

I used to start coding with following format: int main(){ -(cursor here) }

Start file
_
End file
int main(){
    _
}

View Diff

1c1,3
< _
---
> int main(){
>     _
> }

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 39 remaining solutions by signing in and submitting your own entry
#40 Marcin / Marcin89439917 - Score: 24 - 12/31/16 @ 17:57
iint main(){<CR><Esc>o}<Esc>k4i <Esc>ZZ

0 comments

#41 Poigal Nitish / poigalnitish - Score: 24 - 02/20/17 @ 14:31
iint main(){<CR><Right><CR>}<Up><Esc>4i <Esc>ZZ

0 comments

#42 Trey Thomas / treythomas123 - Score: 24 - 03/09/17 @ 02:42
o}<Esc>kOint main(){<Esc>j4i <Esc>ZZ

0 comments

#43 Ryan Marcotte / ryanjmarcotte - Score: 24 - 04/01/17 @ 18:04
iint main(){<CR><Esc>o}<Esc>k4i <Esc>ZZ

0 comments

#44 Mort Rainey / arch_midnight - Score: 24 - 04/28/17 @ 16:20
Cint main(){<CR>    _<CR><C-W>}<Esc>ZZ

0 comments

#45 Jacob Buete / JBuete - Score: 24 - 07/02/17 @ 12:36
Oint main(){<Down><CR>}<Up><Left>    <Esc>ZZ

0 comments

#46 Jon Louie / jjisnow - Score: 25 - 11/23/16 @ 11:38
iint main(){<CR>    <Esc>o}<Esc>d0ZZ

0 comments

#47 Florian Gauger / FlorianGauger - Score: 25 - 06/06/17 @ 01:24
iint main(){<CR><Right><CR>}<Up><Left>    <Esc>ZZ

0 comments

#48 Gurukandhamoorthi / Gurukandhamoor1 - Score: 27 - 07/14/17 @ 17:53
iint main(){<CR>    _<CR>}<Esc>lx<<ZZ

0 comments

#49 onedayrex / onedayzns - Score: 29 - 10/25/16 @ 01:42
ddiint main(){<Esc>pi    <Esc>o<Esc>i}<Esc>ZZ

0 comments

Created by: heehcs

49 active golfers, 87 entries

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

10/23/2016 at 03:13AM

22
#2 - Kerson Hsiao / KersonHsiao

10/23/2016 at 10:39AM

22
#3 - Smylers / Smylers2

10/24/2016 at 08:08AM

22
#4 - John Braxler / braxler

10/24/2016 at 02:59PM

22
#5 - Kim Grytøyr / kimgrytoyr

10/24/2016 at 06:45PM

22
#6 - Nico / _Nico_Caro

10/24/2016 at 08:06PM

22
#7 - 子皓翁 / geniusgordon

10/25/2016 at 08:26AM

22
#8 - Phoenix / betentacled

10/25/2016 at 11:39PM

22
#9 - mebubo / mebubo

10/29/2016 at 11:49PM

22
#10 - Bill Ruddock / biinari

10/31/2016 at 12:29AM

22
#11 - Chris Cummings / mistahcummings

10/31/2016 at 12:56AM

22
#12 - KangHun Seo / shirano80

10/31/2016 at 02:51AM

22
#13 - Saki Gw / Sakigw

10/31/2016 at 03:07PM

22
#14 - Jon Krause / jkrause314

11/07/2016 at 08:45PM

22
#15 - Marin Usalj / _supermarin

11/09/2016 at 11:18PM

22
#16 - mnx / mnxx

11/14/2016 at 01:42PM

22
#17 - timerella® / timerella

11/16/2016 at 11:59PM

22
#18 - Alan Turing / alantrng

11/18/2016 at 01:02PM

22
#19 - Majo / majodurco

11/20/2016 at 09:40PM

22
#20 - Wessel Sinnema / wsinnema

11/27/2016 at 03:52PM

22
#21 - Michał Dytko / DytkoM

12/21/2016 at 02:44PM

22
#22 - Marcel Akkerman / MarcelAkkerman

12/22/2016 at 08:03AM

22
#23 - Joaquin Coronel / joakonumberone

02/08/2017 at 10:06PM

22
#24 - Remus Dalrymple / bornintheflames

05/09/2017 at 06:43AM

23
#25 - Igor Czerwinski / igoratron

10/23/2016 at 11:07AM

23
#26 - Matthieu Crapet / mcr05

10/28/2016 at 09:11PM

24
#27 - tPenguinLTG / tpenguinltg

10/23/2016 at 03:13AM

24
#28 - Cristian Lupașcu / clupasq

10/23/2016 at 08:08AM

24
#29 - AleksandarTrifunovic / akstrfn

10/23/2016 at 09:36AM

24
#30 - eozd / e_ozd

10/23/2016 at 12:49PM

24
#31 - Pierre Sugar / sugaryourcoffex

10/23/2016 at 12:55PM

24
#32 - Stanislav / prstad

10/24/2016 at 05:34AM

24
#33 - trx / trxdbg

10/24/2016 at 07:23AM

24
#34 - Jan Bundesmann / ixjab

10/25/2016 at 01:04PM

24
#35 - Eduardo / earada

10/26/2016 at 01:01PM

24
#36 - Mo / MOtsuka2

10/26/2016 at 01:14PM

24
#37 - Joel Gallant / joelg236

10/28/2016 at 02:50PM

24
#38 - i5513 / i5513

11/13/2016 at 09:35PM

24
#39 - captain_morgan / captain_morgan

11/15/2016 at 06:01PM

24
#40 - Marcin / Marcin89439917

12/31/2016 at 05:57PM

24
#41 - Poigal Nitish / poigalnitish

02/20/2017 at 02:31PM

24
#42 - Trey Thomas / treythomas123

03/09/2017 at 02:42AM

24
#43 - Ryan Marcotte / ryanjmarcotte

04/01/2017 at 06:04PM

24
#44 - Mort Rainey / arch_midnight

04/28/2017 at 04:20PM

24
#45 - Jacob Buete / JBuete

07/02/2017 at 12:36PM

25
#46 - Jon Louie / jjisnow

11/23/2016 at 11:38AM

25
#47 - Florian Gauger / FlorianGauger

06/06/2017 at 01:24AM

27
#48 - Gurukandhamoorthi / Gurukandhamoor1

07/14/2017 at 05:53PM

29
#49 - onedayrex / onedayzns

10/25/2016 at 01:42AM