diff options
author | Teddy Wing | 2019-05-04 11:15:23 +0200 |
---|---|---|
committer | Teddy Wing | 2019-05-04 11:22:29 +0200 |
commit | 188a391ac524251206a5c256cb531c940b3ac288 (patch) | |
tree | f6bb2c6122a1a0864b5f1122557acc821d7ec886 | |
parent | 250a6dd264c155522a616e5d0bac0e1e531a3dd4 (diff) | |
download | dotvim-188a391ac524251206a5c256cb531c940b3ac288.tar.bz2 |
vimrc: Have Gundo use Python 3 when Vim is compiled with `+python3`
After recently installing my vimrc on a newer machine and trying Gundo,
I ended up with this error message:
Gundo requires Vim to be compiled with Python 2.4+
Fortunately, it also supports Python 3 via a flag. Thanks to Carl
Patenaude Poulin (https://bitbucket.org/cpoulin) for this solution:
https://bitbucket.org/sjl/gundo.vim/issues/42/about-python3-support#comment-32289592
-rw-r--r-- | vimrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -403,6 +403,7 @@ " 2019.05.04: " * Use `.agignore` in Pick command. This allows us to exclude files and " folders from Pick at a project level. +" * Tell Gundo to use Python 3 if Vim is compiled with `+python3`. " @@ -589,6 +590,9 @@ endif " Gundo nnoremap <leader>gu :GundoToggle<cr> +if has('python3') + let g:gundo_prefer_python3 = 1 +endif " Netrw |