You are not logged in.

#1 2021-08-18 04:25:30

malacology
Member
Registered: 2021-04-24
Posts: 152

[Solved] vim: Unknown option argument: "--servername"

I would like to use vim to cooperate with JabRef,they cooperate together using the vim server, I have tried the option --servername as https://man.archlinux.org/man/vim.1.en suggested
But it seems that no option argument in vim.

░▒▓ ~ ▓▒░ vim  --servername vim                                                    ░▒▓ 1 ✘  12:20:51 ▓▒░
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled May 28 2021 06:58:52)
Unknown option argument: "--servername"
More info with: "vim -h"
░▒▓ ~ ▓▒░ /usr/bin/vim  --servername vim                                           ░▒▓ 1 ✘  12:22:57 ▓▒░
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled May 28 2021 06:58:52)
Unknown option argument: "--servername"
More info with: "vim -h"

Last edited by malacology (2021-08-18 07:16:24)


Don't speak to silly man. Keep Minimalism.

Offline

#2 2021-08-18 06:31:58

flyingscorpio
Member
Registered: 2020-06-04
Posts: 34

Re: [Solved] vim: Unknown option argument: "--servername"

Is your vim compiled with +clientserver ?
Check

vim --version

Offline

#3 2021-08-18 06:48:50

malacology
Member
Registered: 2021-04-24
Posts: 152

Re: [Solved] vim: Unknown option argument: "--servername"

I install using

 pacman -S vim 

the output

░▒▓ ~ ▓▒░ vim --version                                                              ░▒▓ ✔  12:31:55 ▓▒░
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled May 28 2021 06:58:52)
Included patches: 1-2891
Compiled by Arch Linux
Huge version without GUI.  Features included (+) or not (-):
+acl               -farsi             +mouse_sgr         +tag_binary
+arabic            +file_in_path      -mouse_sysmouse    -tag_old_static
+autocmd           +find_in_path      +mouse_urxvt       -tag_any_white
+autochdir         +float             +mouse_xterm       +tcl/dyn
-autoservername    +folding           +multi_byte        +termguicolors
-balloon_eval      -footer            +multi_lang        +terminal
+balloon_eval_term +fork()            -mzscheme          +terminfo
-browse            +gettext           +netbeans_intg     +termresponse
++builtin_terms    -hangul_input      +num64             +textobjects
+byte_offset       +iconv             +packages          +textprop
+channel           +insert_expand     +path_extra        +timers
+cindent           +ipv6              +perl/dyn          +title
-clientserver      +job               +persistent_undo   -toolbar
-clipboard         +jumplist          +popupwin          +user_commands
+cmdline_compl     +keymap            +postscript        +vartabs
+cmdline_hist      +lambda            +printer           +vertsplit
+cmdline_info      +langmap           +profile           +virtualedit
+comments          +libcall           +python/dyn        +visual
+conceal           +linebreak         +python3/dyn       +visualextra
+cryptv            +lispindent        +quickfix          +viminfo
+cscope            +listcmds          +reltime           +vreplace
+cursorbind        +localmap          +rightleft         +wildignore
+cursorshape       +lua/dyn           +ruby/dyn          +wildmenu
+dialog_con        +menu              +scrollbind        +windows
+diff              +mksession         +signs             +writebackup
+digraphs          +modify_fname      +smartindent       -X11
-dnd               +mouse             -sound             -xfontset
-ebcdic            -mouseshape        +spell             -xim
+emacs_tags        +mouse_dec         +startuptime       -xpm
+eval              +mouse_gpm         +statusline        -xsmp
+ex_extra          -mouse_jsbterm     -sun_workshop      -xterm_clipboard
+extra_search      +mouse_netterm     +syntax            -xterm_save
   system vimrc file: "/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 
Linking: gcc -L. -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.34/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L/usr/local/lib -o vim -lm -ltinfo -lelf -lacl -lattr -lgpm -ldl -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.34/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fstack-protector-strong -L/usr/local/lib -L/usr/lib/perl5/5.34/core_perl/CORE -lperl -lpthread -ldl -lm -lcrypt -lutil -lc -L/usr/lib -ltclstub8.6 -ldl -lz -lpthread -lm 

Don't speak to silly man. Keep Minimalism.

Offline

#4 2021-08-18 06:57:56

flyingscorpio
Member
Registered: 2020-06-04
Posts: 34

Re: [Solved] vim: Unknown option argument: "--servername"

So clientserver isn't compiled into the vim you installed (it has a '-' in the output you gave).
You could install gvim which has the option.

Offline

#5 2021-08-18 07:16:06

malacology
Member
Registered: 2021-04-24
Posts: 152

Re: [Solved] vim: Unknown option argument: "--servername"

Thanks, solved


Don't speak to silly man. Keep Minimalism.

Offline

Board footer

Powered by FluxBB