Of course vi/Vim is used for programming ('coding').
I've been doing that since the early nineties. First vi, later Vim.
I like it better than Visual Studio, better than Eclipse and way better than VScode.