mhinz / neovim-remote

:ok_hand: Support for --remote and friends.
MIT License
1.73k stars 83 forks source link

nvr echos the filename when opening a file #153

Open astier opened 4 years ago

astier commented 4 years ago

Problem

When I open a file with nvr the filename is echoed in nvims-commandline as can be seen in the screenshot. Nvim doesn't do that. Is it possible to suppress it somehow?

Steps

touch foo
nvr foo

Screenshot

nvr_echoes_filename

astier commented 4 years ago

I think nvr should behave by default like nvim.

astier commented 4 years ago

The reason for this behavior is that the nvim setting shortmess is hardcoded and can be found here:

https://github.com/mhinz/neovim-remote/blob/1ec7c6c76a66d8d381f54570d6fdd3079c190ba5/nvr/nvr.py#L99

If I remove all the shortmess-related code nvr behaves just as nvim in this regard. Is there any particular reason why shortmess is hardcoded? If somebody wants to set it s/he can configure it in their vimrc or pass it as an argument to nvr.

Shougo commented 2 years ago

@mhinz Why shortmess is ignored?