Fix Esc remapping and disable global replace by default