tests/bundled/ut/mkVba/mk-UT.vim @ 6049a87d56c6
Fix bug with python3 support crashing Gundo
The recent change that introduced python3 support also made it the default
python version used for Gundo. This caused a problem with certain versions of
vim where upon toggling the Gundo window, we would be greeted with an error
message: "This Vim cannot execute :py3 after using :python"
This commit adds a g:gundo_prefer_python3 variable (default 0) that can be used
to set a preference for python3. By default, python2 will be used.
This also required moving the variable initialization code to the top, since
just evaluating `has('python3')` seems to trigger the vim error.
author |
Strahinja Markovic <strahinja.markovic@gmail.com> |
date |
Mon, 29 Aug 2011 14:13:01 +0200 |
parents |
2b3d5ee5c4a4 |
children |
(none) |
"=============================================================================
" $Id: mk-UT.vim 194 2010-05-17 23:26:14Z luc.hermitte $
" File: mk-UT.vim
" Author: Luc Hermitte <EMAIL:hermitte {at} free {dot} fr>
" <URL:http://hermitte.free.fr/vim/>
" Version: 0.0.3
let s:version = '0.0.3'
" Created: 19th Feb 2009
" Last Update: $Date: 2010-05-17 19:26:14 -0400 (Mon, 17 May 2010) $
"------------------------------------------------------------------------
cd <sfile>:p:h
try
let save_rtp = &rtp
let &rtp = expand('<sfile>:p:h:h').','.&rtp
exe '22,$MkVimball! UT-'.s:version
set modifiable
set buftype=
finally
let &rtp = save_rtp
endtry
finish
UT.README
autoload/lh/UT.vim
autoload/should.vim
autoload/should/be.vim
doc/UT.txt
ftplugin/vim/vim_UT.vim
mkVba/mk-UT.vim
plugin/UT.vim
tests/lh/UT-fixtures.vim
tests/lh/UT.vim
tests/lh/assert.vim