I keep getting this error when trying to edit a nim file everything else works as normal.
"first.nim" 20L, 291C Error detected while processing /home/jrichards/.vim/bundle/nim.vim/autoload/nim.vim: line 12: E319: Sorry, the command is not available in this version: pyfile /home/jrichards/.vim/bundle/nim.vim/autoload/nim_vim.py Press ENTER or type command to continue
Has anyone else experienced this?
Thanks Jim
This is a coincidence. I've been intending to make a forum post about my own Vim configuration for Nim for the past few days.
The error message you are seeing is slightly cryptic, but sufficiently informative to be decoded:
Error detected while processing /home/jrichards/.vim/bundle/nim.vim/autoload/nim.vim: line 12: E319: Sorry, the command is not available in this version: pyfile /home/jrichards/.vim/bundle/nim.vim/autoload/nim_vim.py
So, you should look at file /home/jrichards/.vim/bundle/nim.vim/autoload/nim.vim, line 12.
I also have Zah's Nim-Vim plugin installed, and in autoload/nim.vim on my system, line 12 is:
exe 'pyfile ' . fnameescape(s:plugin_path) . '/nim_vim.py'
Now, back to your error message:
Sorry, the command is not available in this version: pyfile
It appears that the Vim-command pyfile is not available in your version of Vim.
Let's take a look at the Vim docs:
The Python 2.x interface is available only when Vim was compiled with the |+python| feature. The Python 3 interface is available only when Vim was compiled with the|+python3| feature.
So now we ask, what version of Vim are you running? What's the output of the command vim --version on your system?
For example, the pyfile Vim-command works on my system, and here's the output of vim --version on my system:
$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 2 2014 19:39:32)
Included patches: 1-52
Modified by [email protected]
Compiled by buildd@
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +syntax
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
-balloon_eval +float +mouse_urxvt -tag_any_white
-browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent +gettext -mzscheme +textobjects
-clientserver -hangul_input +netbeans_intg +title
-clipboard +iconv +path_extra -toolbar
+cmdline_compl +insert_expand -perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con -lua +rightleft +windows
+diff +menu -ruby +writebackup
+digraphs +mksession +scrollbind -X11
-dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent -xim
+emacs_tags -mouseshape -sniff -xsmp
+eval +mouse_dec +startuptime -xterm_clipboard
+ex_extra +mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop -xpm
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim -lm -ltinfo -lnsl -lselinux -lacl -lattr -lgpm -ldl -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
You can see +python in the third column.
Thanks Jboy
Raspian Jessie Vim package does not have python support compiled in. Researched and found that I just needed to add vim-nox package. sudo apt-get install vim-nox
Thanks for your time, I greatly appreciate it.
Jim
exe 'py3file ' . fnameescape(s:plugin_path) . '/nim_vim.py'
from multiprocessing import Queue
In my case, that line 12 command is disabled, cannot load Python's site module.
I don't know the effect of the error but I suppose the plugin still working correctly? Because it still checking the imported symbol, syntax checking and etc (perhaps am I missing more features because of that error?)
I'm in windows, using gVim portable.
When I last used Windows (a zillion years ago), I used vim via Cygwin. That way I could install all the other Unix command line tools, and even recompile Vim [instructions via this link] with the right things enabled.
These days there are more alternatives to Cygwin, like "Ubuntu on Windows".