Add -i flag to sudo to use user's correct default text editor.