Edit hosts file from terminal IDE with root accessed
You've missed that the /system file system is mounted read-only.

mount -o remount,rw /system
cd /system/etc
vim hosts
# edit, save, then make /system read-only again:
mount -o remount,ro /system