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 5c5f20c1e2dcab0009c10530

Build a six

Just enjoy building "a" floors...

Start file
6
End file
     a = 1
    aa = 2
   aaa = 3
  aaaa = 4
 aaaaa = 5
aaaaaa = 6

View Diff

1,6d0
<      a = 1
<     aa = 2
<    aaa = 3
<   aaaa = 4
<  aaaaa = 5
< aaaaaa = 6

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 61 remaining solutions by signing in and submitting your own entry
#62 Mathieu Chan / @Bazoo77197 - Score: 84 - 02/12/19 @ 14:17
6ia<Esc>a = <Esc>yy5Pvehr j.uv4lr uv3e<Esc>hhhhhhhhhhv3lr jv2lr jvlr jr j<C-X>uk<C-X>k<C-X><C-X>k<C-X><C-X><C-X>kr2kr1<Esc><Esc>:wq<CR>

0 comments


Created by: @SirAviles

62 active golfers, 173 entries

Leaderboard (lowest score wins):
74
#61 - Anant Mishra / @anantanni22

02/10/2019 at 01:26PM

84
#62 - Mathieu Chan / @Bazoo77197

02/12/2019 at 02:17PM