python - Vim: how to install the UltiSnips plugin? -
i tried installing ultisnips plugin, when vim loaded creates torrent of errors:
error detected while processing c:\documents , settings\username\vimfiles\bundle\ultisnips-2.2\plugin\ultisnips.vim: line 226: traceback (most recent call last): file "<string>", line 1, in <module> importerror: no module named os line 229: traceback (most recent call last): file "<string>", line 1, in <module> file "c:\documents , settings\username\vimfiles\bundle\ultisnips-2.2\pl ugin\ultisnips\__init__.py", line 4, in <module> functools import wraps importerror: no module named functools line 230: traceback (most recent call last): file "<string>", line 1, in <module> nameerror: name 'ultisnips_manager' not defined line 231: traceback (most recent call last): file "<string>", line 1, in <module> nameerror: name 'ultisnips_manager' not defined line 232: traceback (most recent call last): file "<string>", line 1, in <module> nameerror: name 'ultisnips_manager' not defined
what did:
i installed pathogen plugin, extracted contents of 'ultisnips-2.2.tar.gz' 'vimfiles/bundle/'
what found install instructions:
http://www.vim.org/scripts/script.php?script_id=2715
the instructions refer concept of 'installing' indicating how source code. there no step step instructions. after cursory glance lead believe contents of 'ultisnips-2.2.tar.gz' (provided directly on page) identical contents of git repository.
edit more information:
this gvim on windows xp. :echo has("python")
returns 1
.
the relevant bits of :version
regarding python is:
+python/dyn -python3 -dfeat_python -ddynamic_python -ddynamic_python_dll="python26.dll"
full contents of :version
:
vim - vi improved 7.3 (2010 aug 15, compiled jan 4 2011 14:09:41) ms-windows 32-bit gui version ole support included patches: 1-98 compiled digitectno@spamdancingpaper.com huge version gui. features included (+) or not (-): +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding -footer +gettext/dyn -hangul_input +iconv/dyn +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +lua/dyn +menu +mksession +modify_fname +mouse +mouseshape +multi_byte_ime/dyn +multi_lang +mzscheme/dyn +netbeans_intg +ole -osfiletype +path_extra +perl/dyn +persistent_undo -postscript +printer +profile +python/dyn -python3 +quickfix +reltime +rightleft +ruby/dyn +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white +tcl/dyn -tgetent -termresponse +textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -xfontset -xim -xterm_save -xpm_w32 system vimrc file: "$vim\vimrc" user vimrc file: "$home\_vimrc" 2nd user vimrc file: "$vim\_vimrc" user exrc file: "$home\_exrc" 2nd user exrc file: "$vim\_exrc" system gvimrc file: "$vim\gvimrc" user gvimrc file: "$home\_gvimrc" 2nd user gvimrc file: "$vim\_gvimrc" system menu file: "$vimruntime\menu.vim" compilation: gcc -o3 -fomit-frame-pointer -freg-struct-return -fno-strength-reduce -dwin32 -dhave_pathdef -dfeat_huge -dwinver=0x0400 -d_win32_winnt=0x0400 -dfeat_perl -ddynamic_perl -ddynamic_perl_dll="perl58.dll" -dfeat_python -ddynamic_python -ddynamic_python_dll="python26.dll" -dfeat_ruby -ddynamic_ruby -ddynamic_ruby_dll="msvcrt-ruby18.dll" -ddynamic_ruby_ver=18 -dfeat_mzscheme -ddynamic_mzscheme -ddynamic_mzsch_dll="libmzsch42.dll" -ddynamic_mzgc_dll="libmzgc42.dll" -dinclude_mzscheme_base -dfeat_tcl -ddynamic_tcl -ddynamic_tcl_dll="tcl85.dll" -dfeat_lua -ddynamic_lua -ddynamic_lua_dll="lua51.dll" -ddynamic_gettext -ddynamic_iconv -dfeat_mbyte -dfeat_mbyte_ime -ddynamic_ime -dfeat_cscope -dfeat_netbeans_intg -dfeat_gui_w32 -dfeat_clipboard -dfeat_ole -march=i386 -iproto -i/cygdrive/c/strawberry/perl/lib/core -i/cygdrive/c/ruby/lib/ruby/1.8/i386-mswin32 -i/cygdrive/c/progra~1/mzscheme/include -i/cygdrive/c/tcl/include -i/cygdrive/c/progra~1/lua/5.1/include -s -mno-cygwin linking: gcc -s -o gvim.exe -luuid -lole32 /cygdrive/c/tcl/lib/tclstub85.lib -lwsock32 -mwindows -lcomctl32 -lversion -loleaut32 -lstdc++
make sure vim has been compiled python support. can check running
vim --version | grep python
and looking +python
or run echo has('python')
, see if outputs 1.
if vim has been compiled python support make sure python (2) in path.
Comments
Post a Comment