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

0 comments


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

0 comments


Created by: @heehcs

60 active golfers, 114 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 / @cantstoptheguac

02/08/2017 at 10:06PM

22
#24 - Remus Dalrymple / @bornintheflames

05/09/2017 at 06:43AM

22
#25 - Turkey Man / @lvturkeyman

11/26/2017 at 09:17AM

22
#26 - DHM / @DHM29978992

05/03/2018 at 02:01AM

22
#27 - slicklash / @slicklash

06/28/2018 at 12:20PM

23
#28 - Igor Czerwinski / @igoratron

10/23/2016 at 11:07AM

23
#29 - Matthieu Crapet / @mcr05

10/28/2016 at 09:11PM

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

08/13/2018 at 09:33PM