'Doing' can be used with 'learn' only when it is a gerund (a noun). Normally, choose 'to do'* I learnt to ski in Austria. I learned to keep my mouth shut after she smacked me a couple of times.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.