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

0 comments


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

0 comments


Created by: @heehcs

72 active golfers, 155 entries

Leaderboard (lowest score wins):
24
#61 - RockerZZY / @rocker_zzy

06/14/2020 at 11:38PM

24
#62 - vladanscy / @vladanscy

02/24/2023 at 01:19PM

25
#63 - Jon Louie / @jjisnow

11/23/2016 at 11:38AM

25
#64 - Florian Gauger / @FlorianGauger

06/06/2017 at 01:24AM

25
#65 - Bradley M. Small / @BradleySmall

11/23/2017 at 02:02AM

25
#66 - Sebastian Wieland / @oktupol

01/23/2018 at 02:17PM

25
#67 - Olivier Bégassat / @zk_evm

06/13/2023 at 12:07AM

25
#68 - jonas-grobe / @jonas-grobe

02/03/2024 at 09:58PM

27
#69 - Gurukandhamoorthi / @Gurukandhamoor1

07/14/2017 at 05:53PM

27
#70 - 小世界 / @walilav

10/13/2023 at 03:34AM

29
#71 - onedayrex / @onedayzns

10/25/2016 at 01:42AM

29
#72 - Austin Ware / @AustinWare17

03/13/2018 at 02:56AM