3 drills
- Divide without a calculator: Finish the line with the decimal value. Type the division on the
= prompt and let Vim work it out (remember the .0). - Replace the sum with its answer: Swap the arithmetic for its result without doing the maths yourself: cut it with
C, then <C-r>=<C-r>"<CR>. - Answers with decimals: Same trick, but these answers have decimals. The
.0 (or any decimal) in each expression makes Vim use floating point.
The drill editor loads in your browser.