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 62 remaining solutions by signing in and submitting your own entry
#63 onedayrex / @onedayzns - Score: 29 - 10/25/16 @ 01:42
ddiint main(){<Esc>pi    <Esc>o<Esc>i}<Esc>ZZ

0 comments


#64 Austin Ware / @AustinWare17 - Score: 29 - 03/13/18 @ 02:56
Oint main(){<Esc>kjo}<Esc>jjkI    <Esc>ZZ

0 comments


Created by: @heehcs

64 active golfers, 129 entries

Leaderboard (lowest score wins):
23
#31 - Igor Czerwinski / @igoratron

10/23/2016 at 11:07AM

23
#32 - Matt / @mcr05

10/28/2016 at 09:11PM

23
#33 - Daniël De Koker / @daniel_koker

08/13/2018 at 09:33PM

23
#34 - yuval jacoby / @yuval_jacoby

07/12/2020 at 08:37PM

24
#35 - tPenguinLTG / @tpenguinltg

10/23/2016 at 03:13AM

24
#36 - Cristian Lupașcu / @clupasq

10/23/2016 at 08:08AM

24
#37 - AleksandarTrifunovic / @akstrfn

10/23/2016 at 09:36AM

24
#38 - eozd / @e_ozd

10/23/2016 at 12:49PM

24
#39 - Pierre Sugar / @sugaryourcoffex

10/23/2016 at 12:55PM

24
#40 - Stanislav / @prstad

10/24/2016 at 05:34AM

24
#41 - trx / @trxdbg

10/24/2016 at 07:23AM

24
#42 - Jan Bundesmann / @janbundesmann

10/25/2016 at 01:04PM

24
#43 - Eduardo / @earada

10/26/2016 at 01:01PM

24
#44 - Mo / @MOtsuka2

10/26/2016 at 01:14PM

24
#45 - Joel Gallant / @joelg236

10/28/2016 at 02:50PM

24
#46 - i5513 / @i5513

11/13/2016 at 09:35PM

24
#47 - captain_morgan / @captain_morgan

11/15/2016 at 06:01PM

24
#48 - Marcin / @Marcin89439917

12/31/2016 at 05:57PM

24
#49 - Poigal Nitish / @poigalnitish

02/20/2017 at 02:31PM

24
#50 - Trey Thomas / @treythomas123

03/09/2017 at 02:42AM

24
#51 - Ryan Marcotte / @ryanjmarcotte

04/01/2017 at 06:04PM

24
#52 - Mort Rainey / @arch_midnight

04/28/2017 at 04:20PM

24
#53 - Jacob Buete / @JBuete

07/02/2017 at 12:36PM

24
#54 - James / @Dronak

03/12/2018 at 09:28PM

24
#55 - Arijus / @argshook

06/28/2018 at 12:09PM

24
#56 - Marius Jurgelenas / @MarenasLT

06/28/2018 at 12:13PM

24
#57 - RockerZZY / @rocker_zzy

06/14/2020 at 11:38PM

25
#58 - Jon Louie / @jjisnow

11/23/2016 at 11:38AM

25
#59 - Florian Gauger / @FlorianGauger

06/06/2017 at 01:24AM

25
#60 - Bradley M. Small / @BradleySmall

11/23/2017 at 02:02AM