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 by @GavinKoeng:

Unlock 4 remaining solutions by signing in and submitting your own entry
Created by: @heehcs

73 active golfers, 159 entries

Solutions by @GavinKoeng:
22
#34 - Gavin / @GavinKoeng

03/19/2026 at 01:12AM

23
#>39 - Gavin / @GavinKoeng

03/19/2026 at 01:12AM

24
#>63 - Gavin / @GavinKoeng

03/19/2026 at 01:11AM

29
#>73 - Gavin / @GavinKoeng

03/19/2026 at 01:11AM