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):
25
#61 - Sebastian Wieland / @oktupol

01/23/2018 at 02:17PM

27
#62 - Gurukandhamoorthi / @Gurukandhamoor1

07/14/2017 at 05:53PM

29
#63 - onedayrex / @onedayzns

10/25/2016 at 01:42AM

29
#64 - Austin Ware / @AustinWare17

03/13/2018 at 02:56AM