There's a whole repo of possible methods: https://github.com/hakluke/how-to-exit-vim
Or install termux and run logcat in a shell on the Android directly?
There's a whole repo of possible methods: https://github.com/hakluke/how-to-exit-vim