### Real Vim ninjas count every keystroke - do you?

###### Pick a challenge, fire up Vim, and show us what you got.

```Your VimGolf key: please sign in

\$ gem install vimgolf
\$ vimgolf setup
\$ vimgolf put 51459ef6b94aa50002000002
```

### It's a factor

Flaunt your macro prowess by factoring some numbers. Too hard? It takes less than 30 strokes, I promise.

```1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
```
```1
1 2
1 3
1 2 4
1 5
1 2 3 6
1 7
1 2 4 8
1 3 9
1 2 5 10
1 11
1 2 3 4 6 12
1 13
1 2 7 14
1 3 5 15
1 2 4 8 16
1 17
1 2 3 6 9 18
1 19
1 2 4 5 10 20
```

#### View Diff

```2,20c2,20
< 2
< 3
< 4
< 5
< 6
< 7
< 8
< 9
< 10
< 11
< 12
< 13
< 14
< 15
< 16
< 17
< 18
< 19
< 20
---
> 1 2
> 1 3
> 1 2 4
> 1 5
> 1 2 3 6
> 1 7
> 1 2 4 8
> 1 3 9
> 1 2 5 10
> 1 11
> 1 2 3 4 6 12
> 1 13
> 1 2 7 14
> 1 3 5 15
> 1 2 4 8 16
> 1 17
> 1 2 3 6 9 18
> 1 19
> 1 2 4 5 10 20
```

### 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 25 remaining solutions by signing in and submitting your own entry
###### #26 Aaron Josephs / aaronjosephs1 - Score: 115 - 05/03/13 @ 00:00
```dG:for i in range(1,20)|let l=[]|for j in range(1,i)|if i%j==0|call add(l,j)|endif|endfor|put=join(l)|endfor<CR>1GddZZ
```

###### #27 Dmitriy / _dpy_ - Score: 115 - 08/21/14 @ 13:08
```dG:for i in range(1,20)|let l=[]|for j in range(1,i)|if i%j==0|call add(l,j)|endif|endfor|put=join(l)|endfor<CR>1GddZZ
```

###### #28 george.li / goblin_george - Score: 116 - 04/27/14 @ 19:47
```dG:for i in range(1,20)|let l=[]|for j in range(1,i)|if i%j==0|call add(l,j)|endif|endfor|put=join(l)|endfor<CR>:1<CR>ddZZ
```

###### #29 Daniel Fleischman / vimgolfdaniel - Score: 122 - 03/25/13 @ 04:29
```<Up>dG:for i in range(1,20)|let l=[]|for j in range(1,i)|if i%j==0|call add(l,j)|endif|endfor|put=join(l)|endof<BS><BS>for<CR>1Gdd:wq<CR>
```

###### #30 RobertT / techrt2050 - Score: 124 - 09/22/13 @ 05:00
```qq+I1 <Esc>q19@q2Gqq2+a 2<Esc>q8@q3Gqq3+\$F a3 <Esc>q4@q4Gqq4+\$F a4 <Esc>q3@q5Gqq5+\$F a5 <Esc>q2@q2-qq\$F a6 <Esc>q6-@q++2f a7 <Esc>jja8 <Esc>jja9 <Esc>jjhi10 <Esc>ZZ
```

###### #31 くま55 / kumack55 - Score: 127 - 04/10/13 @ 05:26
```dG:redi @a|let i=1|whi i<21<CR>let j=2<CR>ec "1"<CR>whi j<=i<CR>if i%j==0<CR>echon " ".j<CR>endi<CR>let j+=1<CR>endw<CR>let i+=1<CR>endw<CR>::redi END<CR>"ap<CR>kdkZZ
```

###### #32 Matt Adelman / Xavierstein - Score: 150 - 03/21/13 @ 16:20
```VGxi1<CR>1 2<CR>1 3<CR>1 2 4<CR>1 5<CR>1 2 3 6<CR>1 7<CR>1 2 4 8<CR>1 3 9<CR>1 2 5 10<CR>1 11<CR>1 2 3 4 6 12<CR>1 13<CR>1 2 7 14<CR>1 3 5 15<CR>1 2 4 8 16<CR>1 17<CR>1 2 3 6 9 18<CR>1 19<CR>1 2 4 5 10 20<Esc>ZZ
```

## 32 active golfers, 75 entries

25
###### #1 - Urtica dioica / udioica

11/15/2013 at 02:31AM

25
###### #2 - John Braxler / braxler

08/19/2014 at 05:34PM

25
###### #3 - 子皓翁 / geniusgordon

10/25/2016 at 09:11AM

26
###### #4 - Petro Тrouq / zulolosi

03/26/2013 at 10:32PM

26
###### #5 - James Davis / tripvg

06/28/2013 at 10:48PM

26
###### #6 - Chaitanya Desu / ChaituNu

05/11/2014 at 04:02AM

26
###### #7 - Arbi Tamrazian / ArbiTamrazian

03/17/2017 at 05:09AM

28
###### #8 - Kerson Hsiao / KersonHsiao

03/22/2013 at 02:16AM

28
###### #9 - Bradd Szonye / bszonye

07/15/2013 at 07:39AM

29
###### #10 - László Bácsi / icanscale

05/06/2013 at 01:14PM

39
###### #11 - Tyler / tylerbindon

04/08/2013 at 03:21AM

41
###### #12 - Ingo / ist3fani

07/28/2013 at 05:03PM

42
###### #13 - Evan Shrubsole / evanshrubsole

03/31/2013 at 08:15PM

50
###### #14 - sweet.mike.vg / SweetMikeVg

05/01/2013 at 10:54PM

53
###### #15 - pftb12345 / pftb12345

04/18/2015 at 03:22AM

58
###### #16 - Tim Chase / gumnos

03/17/2013 at 11:05PM

63
###### #17 - oliver mueller / marcontwit

05/21/2013 at 03:11PM

65
###### #18 - Trevor Powell / DoomedBunnies

03/19/2013 at 03:07AM

88
###### #19 - wushexu / wushexu

05/20/2013 at 08:04AM

88
###### #20 - Piotr Śniegowski / PiotrSniegowski

06/05/2013 at 11:45PM

89
###### #21 - Marcin Katulski / marcink79

03/24/2013 at 01:37PM

92
###### #22 - Joel Elkins / dice_tea

03/18/2013 at 05:34AM

92
###### #23 - brett / brettyukich

10/01/2013 at 09:14AM

101
###### #24 - cj / cj01101

10/18/2013 at 11:00PM

104
###### #25 - Claes Mogren / claesmogren

03/22/2013 at 12:04AM

115
###### #26 - Aaron Josephs / aaronjosephs1

05/03/2013 at 12:00AM

115
###### #27 - Dmitriy / _dpy_

08/21/2014 at 01:08PM

116
###### #28 - george.li / goblin_george

04/27/2014 at 07:47PM

122
###### #29 - Daniel Fleischman / vimgolfdaniel

03/25/2013 at 04:29AM

124
###### #30 - RobertT / techrt2050

09/22/2013 at 05:00AM