diff --git a/autoload/nim.vim b/autoload/nim.vim index c52426f..5d6c5b7 100644 --- a/autoload/nim.vim +++ b/autoload/nim.vim @@ -52,8 +52,10 @@ endf augroup NimVim au! au BufEnter log://nim call s:UpdateNimLog() - " au QuitPre * :py nimTerminateAll() - au VimLeavePre * :py nimTerminateAll() + if has("python3") || has("python") + " au QuitPre * :py nimTerminateAll() + au VimLeavePre * :py nimTerminateAll() + endif augroup END command! NimLog :e log://nim