Required vim compiled with +python -


when typed in raw , hit <c-x><c-o> in python file, error:required vim compiled +python. according result of command :version, there + rather - in front of python, should fix problem?

+arabic          +cursorbind      -footer          +mksession       +path_extra      +startuptime     +visual +autocmd         +cursorshape     +fork()          +modify_fname    -perl            +statusline      +visualextra -balloon_eval    +dialog_con      +gettext         +mouse           +persistent_undo -sun_workshop    +viminfo -browse          +diff            -hangul_input    -mouseshape      +postscript      +syntax          +vreplace ++builtin_terms  +digraphs        +iconv           +mouse_dec       +printer         +tag_binary      +wildignore +byte_offset     -dnd             +insert_expand   -mouse_gpm       +profile         +tag_old_static  +wildmenu +cindent         -ebcdic          +jumplist        -mouse_jsbterm   +python/dyn      -tag_any_white   +windows +clientserver    +emacs_tags      +keymap          +mouse_netterm   +python3/dyn     -tcl             +writebackup +clipboard       +eval            +langmap         +mouse_sgr       +quickfix        +terminfo        +x11 +cmdline_compl   +ex_extra        +libcall         -mouse_sysmouse  +reltime         +termresponse    +xfontset +cmdline_hist    +extra_search    +linebreak       +mouse_urxvt     +rightleft       +textobjects     -xim +cmdline_info    +farsi           +lispindent      +mouse_xterm     -ruby            +title           -xsmp +comments        +file_in_path    +listcmds        +multi_byte      +scrollbind      -toolbar         +xterm_clipboard +conceal         +find_in_path    +localmap        +multi_lang      +signs           +user_commands   -xterm_save +cryptv          +float           -lua             -mzscheme        +smartindent     +vertsplit +cscope          +folding         +menu            +netbeans_intg   -sniff           +virtualedit 

thanks

features marked */dyn may or may not available. support these features not built in. depends on presence of dedicated shared objects.

to of features "/dyn" added when feature available when related library can dynamically loaded.

to check if vim can use dynamic feature, e.g. python do:

:echo has('python') 

it print 0 (false) or 1 (true)

see python-dynamic.

update:

if installed vim source, have rebuild it. use --enable-pythoninterp, --with-python-config-dir options. make sure have python development headers , libraries installed (devel package).


Comments