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 54d6ed13bb73ec0688000001

50 factorials mod 97

List 1! to 50!, but give your answer mod 97.

Start file
Factorials
End file
1
2
6
24
23
41
93
65
3
30
39
80
70
10
53
72
60
13
53
90
47
64
17
20
15
2
54
57
4
23
34
21
14
88
73
9
42
44
67
61
76
88
1
44
40
94
53
22
11
65

View Diff

1c1,50
< Factorials
\ No newline at end of file
---
> 1
> 2
> 6
> 24
> 23
> 41
> 93
> 65
> 3
> 30
> 39
> 80
> 70
> 10
> 53
> 72
> 60
> 13
> 53
> 90
> 47
> 64
> 17
> 20
> 15
> 2
> 54
> 57
> 4
> 23
> 34
> 21
> 14
> 88
> 73
> 9
> 42
> 44
> 67
> 61
> 76
> 88
> 1
> 44
> 40
> 94
> 53
> 22
> 11
> 65
\ No newline at end of file

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 10 remaining solutions by signing in and submitting your own entry
#11 Daniel Bellenger / DanielBellenger - Score: 36 - 10/16/16 @ 15:07
C1<Esc>qqYpC<C-R>=<C-R>2<C-R>"*line('.')%97<CR><Esc>q48@qZZ

0 comments

#12 Carlos López / morrizon - Score: 38 - 02/08/15 @ 13:51
C1<Esc>qqYp:s/.*/\=line('.')*@0%97<CR>q48@qZZ

0 comments

#13 Larry Battle / LarryBattle - Score: 145 - 02/08/15 @ 15:38
C1<CR>2<CR>6<CR>24<CR>23<CR>41<CR>93<CR>65<CR>3<CR>30<CR>39<CR>80<CR>70<CR>10<CR>53<CR>72<CR>60<CR>13<CR>53<CR>90<CR>47<CR>64<CR>17<CR>20<CR>15<CR>2<CR>54<CR>57<CR>4<CR>23<CR>34<CR>21<CR>14<CR>88<CR>73<CR>9<CR>42<CR>44<CR>67<CR>61<CR>76<CR>88<CR>1<CR>44<CR>40<CR>94<CR>53<CR>22<CR>11<CR>65<Esc>ZZ

0 comments

Created by: MeowLucid

13 active golfers, 24 entries

Leaderboard (lowest score wins):
28
#1 - Urtica dioica / udioica

02/08/2015 at 04:23PM

28
#2 - John Braxler / braxler

02/16/2015 at 07:08PM

28
#3 - 何晨 / hechen0_

09/22/2016 at 05:11PM

29
#4 - Kerson Hsiao / KersonHsiao

12/07/2017 at 06:16AM

34
#5 - Petro Тrouq / zulolosi

02/08/2015 at 01:08PM

34
#6 - Matthieu Crapet / mcr05

02/08/2015 at 01:33PM

34
#7 - Terence Hang / technic_tec

02/15/2015 at 03:55AM

34
#8 - pftb12345 / pftb12345

04/16/2015 at 02:00PM

34
#9 - Jon Krause / jkrause314

01/19/2016 at 02:07AM

34
#10 - glepha / glepha_vim

03/24/2016 at 04:04AM

36
#11 - Daniel Bellenger / DanielBellenger

10/16/2016 at 03:07PM

38
#12 - Carlos López / morrizon

02/08/2015 at 01:51PM

145
#13 - Larry Battle / LarryBattle

02/08/2015 at 03:38PM