diff --git a/src/cmd_line/commandLine.ts b/src/cmd_line/commandLine.ts index 4a961c748a8..4d1f2688eba 100644 --- a/src/cmd_line/commandLine.ts +++ b/src/cmd_line/commandLine.ts @@ -38,14 +38,17 @@ export class CommandLine { await cmd.execute(vimState.editor, vimState); } } catch (e) { - console.log(e); if (e instanceof VimError) { - StatusBar.SetText( - `${e.toString()}. ${command}`, - vimState.currentMode, - vimState.isRecordingMacro, - true - ); + if (e.code === ErrorCode.E492 && configuration.enableNeovim) { + await Neovim.command(vimState, command); + } else { + StatusBar.SetText( + `${e.toString()}. ${command}`, + vimState.currentMode, + vimState.isRecordingMacro, + true + ); + } } else { util.showError(e.toString()); }