Skip to content

Commit

Permalink
update example using VimtexClean upon quit
Browse files Browse the repository at this point in the history
The example is using some outdated function (I think).
I wanted to get the behaviour described, and I got it using `VimtexClean` instead of `call vimtex#compiler#clean(0)` which didn't do anything (as I don't think that function exists?)
  • Loading branch information
postylem authored and lervag committed Mar 29, 2021
1 parent 66a7621 commit ab7cb40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/vimtex.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3362,8 +3362,8 @@ Examples: >
" Compile on initialization, cleanup on quit
augroup vimtex_event_1
au!
au User VimtexEventQuit call vimtex#compiler#clean(0)
au User VimtexEventInitPost call vimtex#compiler#compile()
au User VimtexEventQuit VimtexClean
au User VimtexEventInitPost VimtexCompile
augroup END
" Close viewers when VimTeX buffers are closed
Expand Down

0 comments on commit ab7cb40

Please sign in to comment.