버전 2.7이 설치된 경우 군도 플러그인에는 Python 2.4가 필요합니다.


10

Python 2.7.9가 설치되어 있습니다. 이제 Gundo 플러그인에 2.4가 필요하다는 메시지가 나타납니다. 해결 방법이 있습니까?

내 vimrc 파일은 다음과 같습니다.

set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required

Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-surround'
Plugin 'easymotion/vim-easymotion'
Plugin 'scrooloose/nerdtree'
Plugin 'jlanzarotta/bufexplorer'
Plugin 'rstacruz/sparkup'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
Plugin 'jeffkreeftmeijer/vim-numbertoggle'
Plugin 'scrooloose/syntastic'
Plugin 'qpkorr/vim-renamer'
Plugin 'klen/python-mode'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'dhruvasagar/vim-table-mode'
Plugin 'shinokada/listtrans.vim'
Plugin 'gavinbeatty/vmath.vim'
Plugin 'sjl/gundo.vim'
Plugin 'tpope/vim-abolish'


" Bindings for Listtrans plugin
nmap  ;l   :call ListTrans_toggle_format()<CR>          
vmap  ;l   :call ListTrans_toggle_format('visual')<CR>

" Bindings for Gundo
nnoremap <F5> :GundoToggle<CR>

"_Bindings for vmath
"nmap          ++  vip++
"vmap          ++  VMATH_YankAndAnalyse()                     


" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList       - lists configured plugins
" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line

:syntax on
let NERDTreeQuitOnOpen=1

:set hlsearch

vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 31 2015 23:56:29)
Included patches: 1-488, 576
Modified by pkg-vim-maintainers@lists.alioth.debian.org
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 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1      
Linking: gcc   -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim        -lm -ltinfo -lnsl  -lselinux -lacl -lattr -lgpm -ldl

1
Gundo가 Python 버전에서 작동하지 않는다는 것을 의미합니까? 필자는 적어도 Python 2.4 가 필요하다고 생각 하지만 모든 Python 2.4 이상에서 작동해야합니다. 2.7.6내 컴퓨터에서 작업하는 것 같습니다 .
— Łukasz Górski

실제로 2.4 이상이 필요하지만 여전히 이해가되지 않는다고 말합니다.
— user3467407

어떻게 요? 작동하지 않고이 메시지를 오류 설명으로 표시하면 설정에 문제가있는 것입니다 (Gundo가 Python과 올바르게 통신하지 않거나 적어도 설치 한이 특정 구현과 통신하지 않음). 작동하는 경우 2.4보다 오래된 Python ( 매우 오래된 것) 에서는 Gundo를 사용할 수없는 정보 일뿐 입니다. 이 Python 버전 요구 사항이 정확히 어디에 표시됩니까?
— Łukasz Górski

Vim 버전은 무엇입니까? :version결과를 보여주세요
— Christian Brabandt

5
당신은이 -python 당신과 함께 빔을 필요로 + 파이썬 또는 + 파이썬 / DYN . 패키지 관리자에서 vim-gtk를 설치하십시오.
— Christian Brabandt

답변:


7

undotree 플러그인을 사용해보십시오 :

누군가가 군도와의 차이점에 대해 물었습니다. 여기에 차이점 또는 장점이 있습니다.

  1. 순수한 vimscript 구현과 python과 같은 타사 라이브러리가 필요 하지 않으며 성능에 대해 걱정하지 마십시오 .vim 이 이것을 처리하는 것은 그리 큰 일이 아닙니다. 유일한 의존성은 항상 vim과 함께 제공되는 'diff'도구이며 'diff'가 없어도이 스크립트의 대부분의 기능을 계속 사용할 수 있습니다.
  2. 실시간 업데이트 취소 트리. 변경하면 실행 취소 트리가 동시에 업데이트됩니다.
  3. 현재 변경 세트, 다음 재실행 변경 세트, 저장된 변경 세트 등과 같은 몇 가지 유용한 표시입니다.
  4. 상대 타임 스탬프와 절대 타임 스탬프간에 전환합니다.
  5. 실시간 업데이트 실행 취소 창.
  6. 실행 취소 기록을 지우는 기능.
  7. 더 사용자 정의 할 수 있습니다.

나는 몇 년 전에 군도에서 undotree로 전환했으며 매우 잘 작동합니다.


5

이것을 .vimrc에 추가하십시오

if has('python3')
    let g:gundo_prefer_python3 = 1
endif

비슷한 오류가 발생했습니다. 위의 내용은 저에게 효과적이었습니다 (Manjaro Linux를 사용하고 있으며 커뮤니티 / python-neovim (neovi 용 Python 3 클라이언트)을 설치했습니다). 에서 찾을 수 https://bitbucket.org/sjl/gundo.vim/issues/42/about-python3-support

당사 사이트를 사용함과 동시에 당사의 쿠키 정책과 개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.