From ac751400955aa61111b97375c37e848d26c14329 Mon Sep 17 00:00:00 2001 From: fdobad <29801096+fdobad@users.noreply.github.com> Date: Wed, 16 Aug 2023 11:55:00 -0400 Subject: [PATCH] if win32 _pyhon 0 else 1 --- README.md | 2 -- autoload/tagbar.vim | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 99ac0d83..97a259f8 100644 --- a/README.md +++ b/README.md @@ -46,8 +46,6 @@ If the ctags executable is not installed in one of the directories in your `$PATH` environment variable you have to set the `g:tagbar_ctags_bin` variable, see the documentation for more info. -Windows users should add `let g:tagbar_python = 0` to their vimrc. - ## Quickstart Put something like the following into your ~/.vimrc: diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 35ceae2c..4c10d388 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -3163,7 +3163,11 @@ function! s:ExecuteCtags(ctags_cmd) abort call tagbar#debug#log('Exit code: ' . v:shell_error) redraw! else - let py_version = get(g:, 'tagbar_python', 1) + if has('win32') + let py_version = get(g:, 'tagbar_python', 0) + else + let py_version = get(g:, 'tagbar_python', 1) + endif silent let ctags_output = s:run_system(a:ctags_cmd, py_version) endif