Vim script Gundo isn't working properly
I'm having trouble with my vim with "python" support.
I had installed gnome-vim, in Ubuntu 11.04, that theoretically has "python" support but if I install pathogen and gundo, when I press F5, the message below is shown:
Error detected while processing /home/perseus/Coding/LinuxConfigFiles/.vim/bundle/gundo/autoload/gundo.vim:
line 22:
E837: This Vim cannot execute :py3 after using :python
line 30:
E121: Undefined variable: s:has_supported_python
E15: Invalid expression: !s:has_supported_python
Error detected while processing function gundo#GundoToggle..<SNR>26_GundoToggle..<SNR>26_GundoOpen:
line 2:
E121: Undefined variable: s:has_supported_python
E15: Invalid expression: s:has_supported_python == 2
line 10:
E121: Undefined variable: s:has_supported_python
"__Gundo_Preview__" [New File]
Error detected while processing function gundo#GundoToggle..<SNR>26_GundoToggle..<SNR>26_GundoOpen..<SNR>26_GundoRenderGraph:
line 1:
E121: Undefined variable: s:has_supported_python
E15: Invalid expression: s:has_supported_python == 2
Error detected while processing function gundo#GundoToggle..<SNR>26_GundoToggle..<SNR>26_GundoOpen..<SNR>26_GundoRenderPreview:
line 1:
E121: Undefined variable: s:has_supported_python
E15: Invalid expression: s:has_supported_python == 2
Anyone know how to fix it?
To get it working these days (with python3 support) you need to add the following variable to your .vimrc
:
let g:gundo_prefer_python3 = 1
Otherwise you'll run into errors like: "E117: Unknown function: gundo#GundoShow"