Fix the XML
The challenge consists in having a valid xml from an incomplete source.
Start file
<I> <hate> <xml>hello <files>files </hate> <hate> <xml>xml <files>world </hate> </I>
End file
<I> <hate> <xml>hello</xml> <files>files</files> </hate> <hate> <xml>xml</xml> <files>world</files> </hate> </I>
View Diff
3,4c3,4 < <xml>hello < <files>files --- > <xml>hello</xml> > <files>files</files> 7,8c7,8 < <xml>xml < <files>world --- > <xml>xml</xml> > <files>world</files>
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 289 remaining solutions by signing in and submitting your own entry
#290 Rafal C. / @RafalC37709324 - Score: 125 - 11/17/20 @ 20:16
jjev%%f>y$<Esc>hhhhhhhhhvlllly$Pupj^ehhhhhvely$p<Esc>hhhhhi/<Esc>khhi/<Esc>jjjjahhh<BS><BS><BS>hh<BS><BS><Esc>hhhhhhhvllllly$ap<Esc>p<Esc>hhhhhhxli/<Esc>$x<Esc>ja</files><Esc>h:wq<CR>
0 comments