Reverse characters in a line
You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.
Start file
abcdefghijklmnopqrstuvwxyz
End file
zyxwvutsrqponmlkjihgfedcba
View Diff
--- in 2010-12-28 19:41:39.000000000 -0800 +++ out 2010-12-28 19:41:59.000000000 -0800 @@ -1 +1 @@ -abcdefghijklmnopqrstuvwxyz +zyxwvutsrqponmlkjihgfedcba
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.
#178 Aaron Josephs / @aaronjosephs1 - Score: 18 - 05/01/13 @ 19:08
o<Esc>qqkxjPq25@qkddZZ
0 comments
#182 Ian McCracken / @iancmcc - Score: 20 - 12/29/10 @ 18:08
<fd-35>o<Esc>qjkxjPq25@jkJZZ
0 comments
#183 Adrian Silva / @scyldinga - Score: 20 - 01/13/11 @ 06:37
mm$qax`mPlmm$q26@aZZ
@scyldinga: Why is some people getting that <fd-35> as first character. Did understand the solution by @relmquist with a little `:help`. Just realized that `:help P` gives you anything you need to know about P.
1 comment
#184 Fakerabe Ninanotape / @FakerabeNinanot - Score: 20 - 09/25/11 @ 02:07
mm$qax`mPlmm$q26@aZZ
0 comments
#186 Christopher Suter / @cgs1019 - Score: 21 - 12/28/10 @ 20:01
o<Esc>kqq$xj$pk$q25@QddZZ
0 comments
#187 Perry Zheng / @PerryZheng - Score: 21 - 12/28/10 @ 22:38
<fd-35>o<Esc>kqaxjPkq25@addZZ
0 comments
#188 Gordon McCreight / @gmccreight - Score: 21 - 12/28/10 @ 23:12
<fd-35>o<Esc>kqqxjPkq25@qddZZ
0 comments
#189 Geoffrey Bachelet / @ubermuda - Score: 21 - 12/29/10 @ 01:02
<fd-35>:r!rev %<CR><Up>dd:wq<CR>
0 comments
#190 Andrew McDonough / @andrewmcdonough - Score: 21 - 12/29/10 @ 11:18
<fd-35>qamm$vd`mPlq26@aZZ
0 comments
#191 無ん垢の叫び / @john_ababa - Score: 22 - 05/25/12 @ 23:12
:s/./&<C-V><CR>/g|sor!<CR>27gJZZ
0 comments
#192 okay zed / @okayzed - Score: 23 - 12/28/10 @ 20:19
<fd-35>V:!tac -r -s.<CR>dd:wq<CR>
0 comments
#193 Christopher Vollick / @psycotica0 - Score: 23 - 12/28/10 @ 20:24
qwxfnp$xFmP0q11@wfmxpZZ
0 comments
#194 Ryan Elmquist / @relmquist - Score: 23 - 12/29/10 @ 00:26
<fd-35>mm$qax`mPlmm$q26@aZZ
0 comments
#195 Joe McCall / @joem86 - Score: 24 - 12/28/10 @ 23:54
<fd-35>xA <C-R>"<Esc>bqaxwPbq24@axZZ
0 comments
#196 DJ Adams / @qmacro - Score: 25 - 12/29/10 @ 10:00
<fd-35>c$<C-O>:set revins<CR><C-R>"<Esc>:wq<CR>
0 comments
#197 Arto Vuori / @dhpe - Score: 25 - 08/30/12 @ 14:08
A <Esc>0qaexA<Esc>p0q24@adtzAa<Esc>ZZ
0 comments
#198 Joe Hassick / @jhassick - Score: 27 - 12/29/10 @ 08:35
<fd-35>:s/./&\r/g|g/^/m0<CR>V}gJZZ
0 comments
#199 Juan C. Muller / @juancmuller - Score: 30 - 12/30/10 @ 20:46
Czyxwvutsrqponmlkjihgfedcba<Esc>ZZ
0 comments
#200 lionel young / @lionelyoung - Score: 31 - 12/28/10 @ 23:47
<fd-35>qna<CR><Esc>q24@n:sort!<CR>qjJxq24@JZZ
0 comments
#201 Guillaume Bonnoron / @gbonnoron - Score: 31 - 12/31/10 @ 03:55
cczyxwvutsrqponmlkjihgfedcba<Esc>ZZ
0 comments
#202 Dj Vimgolf / @dj_vimgolf - Score: 31 - 01/14/12 @ 10:08
c$zyxwvutsrqponmlkjihgfedcba<Esc>ZZ
0 comments
#204 【Rob Mason】 / @necr0mancer - Score: 32 - 01/18/11 @ 03:30
ddizyxwvutsrqponmlkjihgfedcba<Esc>ZZ
0 comments
#205 Paul Tarjan / @ptarjan - Score: 33 - 12/29/10 @ 03:42
<fd-35>Szyxwvutsrqponmlkjihgfedcba<Esc>ZZ
0 comments
#206 Adam Bachman / @abachman - Score: 33 - 12/29/10 @ 13:47
<fd-35>:s/\(.\)/\1<C-V><CR>/|sor!|%s/\n/<CR><CR>ZZ
0 comments
#207 Rajit Singh / @rajitbsingh - Score: 33 - 12/29/10 @ 15:06
<fd-35>Czyxwvutsrqponmlkjihgfedcba<Esc>ZZ
0 comments
#208 Lee Marlow / @lmarlow - Score: 33 - 12/29/10 @ 15:43
<fd-35>Czyxwvutsrqponmlkjihgfedcba<Esc>ZZ
0 comments
#209 Julien Gormotte / @gormux - Score: 33 - 12/30/10 @ 01:47
cczyxwvutsrqponmlkjihgfedcba<Esc>:wq<CR>
0 comments
#210 Chris Lerum / @ChrisLerum - Score: 34 - 12/28/10 @ 21:15
ddizyxwvutsrqponmlkjihgfedcba<Esc>:wq<CR>
0 comments
#211 Alison Rowland / @arowla - Score: 34 - 12/28/10 @ 21:59
<fd-35>cczyxwvutsrqponmlkjihgfedcba<Esc>ZZ
0 comments
#212 It's Me / @soidid - Score: 35 - 12/28/10 @ 21:47
<fd-35>Czyxwvutsrqponmlkjihgfedcba<Esc>:wq<CR>
0 comments
#213 Scott Werner / @scottwisme - Score: 35 - 12/29/10 @ 06:31
<fd-35>Vdizyxwvutsrqponmlkjihgfedcba<Esc>ZZ
0 comments
#214 Ajith Antony / @ajithantony - Score: 36 - 12/29/10 @ 04:51
<fd-35>:%!perl -ple '$_=reverse.""'<CR>:wq<CR>
0 comments
#215 Jonathan Wallace / @jonathanwallace - Score: 38 - 12/28/10 @ 20:06
<fd-35>qqa<CR><Esc>q25@Q:%!sort -r<CR>27J:%s/ //g<CR>ZZ
0 comments
#216 Abhishek Mukherjee / @abhishekmukherg - Score: 40 - 12/29/10 @ 08:11
<fd-35>cczyxwvutsrqponmlkjihgfedcba<Esc>:wqa<BS><CR>
0 comments
#217 Erin Staniland / @erino - Score: 43 - 12/29/10 @ 09:03
<fd-35>:%s/./&\r/g<CR>:%!sort -r<CR>:%s/\n//g<CR>A<Esc>l:wq<CR>
0 comments
#218 Dhruva Sagar / @dhruvasagar - Score: 44 - 12/28/10 @ 20:46
<fd-35>:!<BS>%!ruby -e 'puts gets.reverse'<CR>dd:wq<CR>
0 comments
#219 Jason Noble / @jasonnoble - Score: 44 - 12/29/10 @ 20:42
<fd-35>:!rev<CR><C-C><CR>cwzyxwvutsrqponmlkjihgfedcba<Esc>:wq<CR>
0 comments
VimGolf