I’ve been having problems with this topic, probably due to zsh. In any case, It might be useful to mention it here in case someone else runs into the same problem.
edit-command-line command escapes single quotes of the
nvr command (roughly to
+\'set bufhidden=wipe\'), and
nvr gets confused when parsing these arguments (it thinks there are two arguments,
bufhidden=wipe', and neovim ends up trying to execute a mark command
's). Git, in turn, does not escape the command, so everything works fine there and the flag enters in the
nvr executable as a single argument.
My temporary workaround is ugly but effective. First, configure a command:
command! SetWipeBuffer set bufhidden=wipe
Then we can configure the $VISUAL variable like so:
let $VISUAL="nvr -cc split --remote-wait +SetWipeBuffer"
And there is another unfortunate problem. When I change the nvr command to open on a vertical split, neovim dies with a segmentation fault, which is very weird :( I’m using the latest versions.