The biggest mistake I made when learning to code was trying to do it with vim.
Get an IDE, I suggest JetBrains.
I use vim everyday day as I work on Linux systems copying code and writing scripts and things but it should not be your primary development tool, certainly not for novices.