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

Simple Maths 2

Time to practice expression register! #maths #linear

Start file
34 5 13
26 7 8
21 6 6
16 14
13 11
11 10
9 8
8 7
End file
34 5 13
26 7 8
21 6 6
47 16 14
38 13 11
34 11 10
28 9 8
25 8 7

View Diff

4,8c4,8
< 16 14
< 13 11
< 11 10
< 9 8
< 8 7
---
> 47 16 14
> 38 13 11
> 34 11 10
> 28 9 8
> 25 8 7

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 4 remaining solutions by signing in and submitting your own entry
#5 Matthieu Crapet / @mcr05 - Score: 25 - 06/11/19 @ 18:04
GqqC<C-R>=<C-R>-*2+3<C-Left>+<CR> <Esc>p-q4@qZZ

@mcr05: Basic idea of challenge was : y = 1 * x0 + 2 * x1 + 3

1 comment


Created by: @mcr05

5 active golfers, 11 entries

Leaderboard (lowest score wins):
17
#1 - Saki Gw / @Sakigw

06/11/2019 at 02:00PM

17
#2 - Jon Krause / @jkrause314

06/12/2019 at 06:22AM

17
#3 - John Braxler / @braxler

06/12/2019 at 12:27PM

21
#4 - Paul Draghicescu / @pdragy

06/10/2019 at 10:47PM

25
#5 - Matthieu Crapet / @mcr05

06/11/2019 at 06:04PM