tomtom / checksyntax_vim

Check a file's syntax when saving a file (php, ruby, tex ...) with vim
http://www.vim.org/scripts/script.php?script_id=1431
GNU General Public License v3.0
94 stars 9 forks source link

E46: Cannot change read-only variable "v:servername" #24

Closed h3110w0r1d closed 9 years ago

h3110w0r1d commented 9 years ago

i run 'vim --servername blabla', error happend. "CheckSyntax: Run vim with the --servername NAME command line option to enable use of AsyncCommand"

so, i let v:servername in the vimrc file, E46 error

MacVim

tomtom commented 9 years ago

so, i let v:servername in the vimrc file, E46 error You cannot set v:servername. You have to start vim with the "--servername" command-line option. Alternatively, you could gvim, which sets this variable anyway if gvim was compiled with +clientserver support.

tomtom commented 9 years ago

i run 'vim --servername blabla', error happend.

What's the result of :echo has("clientserver")? If it is 0, the your version of vim doesn't support the AsyncCommand plugin.

h3110w0r1d commented 9 years ago

:echo has("clientserver") is 1

vim version info : +clientserver

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 13 2014 21:14:10) MacOS X (unix) version Included patches: 1-383 Compiled by ethan@EthandeMBP Huge version with MacVim GUI. Features included (+) or not (-): +acl +comments +ex_extra +insert_expand +mouse +netbeans_intg +ruby +terminfo +wildignore +arabic +conceal +extra_search +jumplist +mouseshape +odbeditor +scrollbind +termresponse +wildmenu +autocmd +cryptv +farsi +keymap +mouse_dec +path_extra +signs +textobjects +windows +balloon_eval +cscope +file_in_path +langmap -mouse_gpm +perl +smartindent +title +writebackup +browse +cursorbind +find_in_path +libcall -mouse_jsbterm +persistent_undo -sniff +toolbar -X11 ++builtin_terms +cursorshape +float +linebreak +mouse_netterm +postscript +startuptime +transparency -xfontset +byte_offset +dialog_con_gui +folding +lispindent +mouse_sgr +printer +statusline +user_commands +xim +cindent +diff -footer +listcmds -mouse_sysmouse +profile -sun_workshop +vertsplit -xsmp +clientserver +digraphs +fork() +localmap +mouse_urxvt +python +syntax +virtualedit -xterm_clipboard +clipboard +dnd +fullscreen -lua +mouse_xterm -python3 +tag_binary +visual -xterm_save +cmdline_compl -ebcdic -gettext +menu +multi_byte +quickfix +tag_old_static +visualextra -xpm +cmdline_hist +emacs_tags -hangul_input +mksession +multi_lang +reltime -tag_any_white +viminfo +cmdline_info +eval +iconv +modify_fname -mzscheme +rightleft -tcl +vreplace