Adam's challenge
Change both normal to bold and 4 by 2. Adam Wathan challenge this on twitter . He did it in 11 keystrokes on Sublime.
Start file
<div> <span class="text-base text-dark wt-normal"> @icon('line-graph', 'icon-sm text-dark-faint m-r-4') ${{ number_format($product->totalRevenue() / 100) }} </span> <span class="text-base text-dark wt-normal"> @icon('users', 'icon-sm text-dark-faint m-r-4') {{ $product->totalPurchases() }} </span> </div>
End file
<div> <span class="text-base text-dark wt-bold"> @icon('line-graph', 'icon-sm text-dark-faint m-r-2') ${{ number_format($product->totalRevenue() / 100) }} </span> <span class="text-base text-dark wt-bold"> @icon('users', 'icon-sm text-dark-faint m-r-2') {{ $product->totalPurchases() }} </span> </div>
View Diff
2,3c2,3 < <span class="text-base text-dark wt-normal"> < @icon('line-graph', 'icon-sm text-dark-faint m-r-4') ${{ number_format($product->totalRevenue() / 100) }} --- > <span class="text-base text-dark wt-bold"> > @icon('line-graph', 'icon-sm text-dark-faint m-r-2') ${{ number_format($product->totalRevenue() / 100) }} 5,6c5,6 < <span class="text-base text-dark wt-normal"> < @icon('users', 'icon-sm text-dark-faint m-r-4') {{ $product->totalPurchases() }} --- > <span class="text-base text-dark wt-bold"> > @icon('users', 'icon-sm text-dark-faint m-r-2') {{ $product->totalPurchases() }}
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 269 remaining solutions by signing in and submitting your own entry
#270 Krystle / @krystle_test - Score: 55 - 05/17/17 @ 06:32
:%s/t<BS>wt-normal/wt-bold<CR><Down><Right>i:w<BS><BS><Esc>:w%<BS><BS><BS>:%s/r-4/r-2<CR><Esc>:wq<CR>
0 comments