:%s/oldStr/newStr/gc
" : => command mode " % => replace the WHOLE file in current buffer " s => substitude " g => global " c => confirm before replacement " oldStr => string that you want to be replaced " newStr => string that you want to replace