Running Vim as Sudo is the only way to access the hosts file. You'll be prompted for a password.