I've turned off the vibration in the settings but the phone still vibrates each time I write something which drains the battery a lot. Do you have another solution than putting the phone in battery saving mode?
You need change settings in keyboard. Settings - language & input - virtual keyboard - android keyboard - preferences - vibrate on keypress.
If you using different keyboard you need also change settings there.