Merge pull request #88 from magnostherobot/mtr/nopythonexit
Check for python support before queuing autocmd
This commit is contained in:
commit
d1c7e21661
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue