Is it possible to set vim's servername from my vimrc instead of using the --servername
command line switch? If I try one of
set v:servername="TEX"
let v:servername="TEX"
I get unknown option error and cannot overwrite read-only variable error respectively.
According to documentation (:help v:servername
) the v:servername
variable is read only.
And according to source code serverRegisterName()
in if_xcmdsrv.c
is called from three places:
main()
functionSo the answer to your question is no, you can't set server name in your .vimrc
or anywhere else except command line arguments.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With