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

0 comments


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

0 comments


Created by: @heehcs

70 active golfers, 147 entries

Leaderboard (lowest score wins):
25
#61 - Jon Louie / @jjisnow

11/23/2016 at 11:38AM

25
#62 - Florian Gauger / @FlorianGauger

06/06/2017 at 01:24AM

25
#63 - Bradley M. Small / @BradleySmall

11/23/2017 at 02:02AM

25
#64 - Sebastian Wieland / @oktupol

01/23/2018 at 02:17PM

25
#65 - Olivier B├ęgassat / @zk_evm

06/13/2023 at 12:07AM

25
#66 - jonas-grobe / @jonas-grobe

02/03/2024 at 09:58PM

27
#67 - Gurukandhamoorthi / @Gurukandhamoor1

07/14/2017 at 05:53PM

27
#68 - Vincent Lai / @walilav

10/13/2023 at 03:34AM

29
#69 - onedayrex / @onedayzns

10/25/2016 at 01:42AM

29
#70 - Austin Ware / @AustinWare17

03/13/2018 at 02:56AM