UltiSnips插件安装与病原体vim(v7.x)问题

时间:2013-11-07 01:57:10

标签: python vim plugins pathogen ultisnips

我很难使用病原体将UltiSnips安装到gvim上(在Windows 7上)。当我将UltiSnips文件夹放在vim73 / bundle中时,gvim随后将无法打开。当我删除UltiSnips时,gvim会正常打开。

gvim的版本是7.3。 命令

:echo has ("python")

返回'1'。 命令

:echo has ("python3") 

返回'0' 运行命令

:py import sys; print(sys.version) 

:py3 import sys; print(sys.version)

导致gvim突然崩溃。我运行:version命令(见下文)来获取有关是否已安装python的信息,它似乎是。 vimrc非常小(见下文)。

我尝试使用

行来运行它
let g:UltiSnipsUsePythonVersion = 2 

let g:UltiSnipsUsePythonVersion = 3

下面是版本命令的输出,以及vimrc

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 27 2010 17:59:02)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-46
Compiled by Bram@KIBAALE
Big version with 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 +menu +mksession +modify_fname +mouse +mouseshape 
+multi_byte_ime/dyn +multi_lang -mzscheme +netbeans_intg 
+ole -osfiletype +path_extra +perl/dyn +persistent_undo 
-postscript +printer -profile +python/dyn +python3/dyn 
+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: cl -c /W3 /nologo  -I. -Iproto -DHAVE_PATHDEF -DWIN32   
-DFEAT_CSCOPE -DFEAT_NETBEANS_INTG   -DFEAT_XPM_W32   -DWINVER=0x0400 
-D_WIN32_WINNT=0x0400  /Fo.\ObjGOLYHTR/ /Ox /GL -DNDEBUG  /Zl /MT 
-DFEAT_OLE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_GUI_W32 -DDYNAMIC_ICONV 
-DDYNAMIC_GETTEXT -DFEAT_TCL -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl83.dll\" 
-DDYNAMIC_TCL_VER=\"8.3\" -DFEAT_PYTHON -DDYNAMIC_PYTHON 
-DDYNAMIC_PYTHON_DLL=\"python27.dll\" -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 
-DDYNAMIC_PYTHON3_DLL=\"python31.dll\" -DFEAT_PERL -DDYNAMIC_PERL 
-DDYNAMIC_PERL_DLL=\"perl512.dll\" -DFEAT_RUBY -DDYNAMIC_RUBY 
-DDYNAMIC_RUBY_VER=191 -DDYNAMIC_RUBY_DLL=\"msvcrt-ruby191.dll\" 
-DFEAT_BIG /Fd.\ObjGOLYHTR/ /Zi
Linking: link /RELEASE /nologo /subsystem:windows /LTCG:STATUS
oldnames.lib kernel32.lib advapi32.lib shell32.lib gdi32.lib  
comdlg32.lib ole32.lib uuid.lib /machine:i386 /nodefaultlib gdi32.lib version.lib   
winspool.lib comctl32.lib advapi32.lib shell32.lib  /machine:i386 /nodefaultlib 
libcmt.lib oleaut32.lib  user32.lib      
/nodefaultlib:python27.lib /nodefaultlib:python31.lib   
e:\tcl\lib\tclstub83.lib WSock32.lib e:\xpm\lib\libXpm.lib /PDB:gvim.pdb -debug

====================================  

set nocompatible

execute pathogen#infect()
syntax on
filetype plugin indent on

let g:UltiSnipsUsePythonVersion = 2

set laststatus=2

建议表示赞赏,

GilFra

1 个答案:

答案 0 :(得分:0)

永远不要搞乱Vim的运行时文件。不要添加,不要删除,不要更改。

第三方和自定义脚本必须进入$HOME/_vimfiles