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 5287aac7bba8eb0002000002

Permutations N=4

Could use backtracking or other algorithm to generate sorted numbers. Second chance !

Start file
1234
End file
1234
1243
1324
1342
1423
1432
2134
2143
2314
2341
2413
2431
3124
3142
3214
3241
3412
3421
4123
4132
4213
4231
4312
4321

View Diff

1a2,24
> 1243
> 1324
> 1342
> 1423
> 1432
> 2134
> 2143
> 2314
> 2341
> 2413
> 2431
> 3124
> 3142
> 3214
> 3241
> 3412
> 3421
> 4123
> 4132
> 4213
> 4231
> 4312
> 4321

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 thasso / thasso23 - Score: 53 - 11/16/13 @ 23:01
qqYp$XpYpxpYp$XpYplxpq2@qddV{yPgvc<C-O>:se ri<CR><C-R>"<BS><Esc>:sor<CR>ZZ

0 comments

#12 cj / cj01101 - Score: 53 - 02/05/14 @ 00:01
Y3pxpjlx0Pj$x0PggqaY2plxpjlxhP+q3@aggqaYPj$xP+q11@aZZ

0 comments

#13 Tyler / tylerbindon - Score: 82 - 11/17/13 @ 03:34
YP$xPyjPl<C-V>jxpyjP$<C-V>jxPVGYPl<C-V>5j$:s/2/1<CR><C-V>{r2Pl<C-V>5j$:s/3/1<CR><C-V>{r3Pl<C-V>5j$:s/4/1<CR><C-V>{r4:sor|x<CR>

0 comments

Created by: zulolosi

13 active golfers, 38 entries

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

04/26/2014 at 06:17AM

25
#2 - John Braxler / braxler

08/22/2014 at 03:10PM

25
#3 - 何晨 / hechen0_

09/22/2016 at 05:21PM

27
#4 - Kerson Hsiao / KersonHsiao

02/25/2014 at 05:24AM

27
#5 - MP / Enemy_m

02/26/2014 at 01:19AM

27
#6 - Petro Тrouq / zulolosi

03/10/2014 at 12:43AM

27
#7 - i1464083 / i1464083

11/18/2016 at 10:59AM

33
#8 - Jon Krause / jkrause314

04/12/2016 at 08:54PM

35
#9 - Ilya Ermolin / ermolinis

11/18/2013 at 09:28AM

37
#10 - Carlos A Henríquez Q / lagunex

02/28/2015 at 10:03PM

53
#11 - thasso / thasso23

11/16/2013 at 11:01PM

53
#12 - cj / cj01101

02/05/2014 at 12:01AM

82
#13 - Tyler / tylerbindon

11/17/2013 at 03:34AM