You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When inside the VimtexTOC buffer, typing the :VimtexTocToggle commands returns the following error:
E492: Not an editor command: VimtexTocToggle
This is due to the fact that the VimtexTocToggle command is exclusive to tex filetypes (and it's derivatives such as rnw).
Since the toc buffer has no filetype( running :set filetype returned filetype=), I deduced this was the issue.
This is especially annoying when mapping a key to open and focus the TOC as it no longer works as a toggle
(ex: nnoremap <c-Tab> :VimtexTocToggle<CR><c-w>l).
Steps to reproduce
Open a latex document
Enter :VimtexTocToggle
Enter <C-w>l (or j if your split is horizontal)
Retype :VimtexTocToggle
Enjoy!
Expected behavior
The Toc window disapears and the cursor returns to the previous tex buffer.
This is especially annoying when mapping a key to open and focus the TOC as it no longer works as a toggle
(ex: nnoremap <c-Tab> :VimtexTocToggle<CR><c-w>l).
I've added the command for the ToC window now - does that resolve your issue?
Description
When inside the VimtexTOC buffer, typing the
:VimtexTocToggle
commands returns the following error:This is due to the fact that the
VimtexTocToggle
command is exclusive totex
filetypes (and it's derivatives such asrnw
).Since the toc buffer has no filetype( running
:set filetype
returnedfiletype=
), I deduced this was the issue.This is especially annoying when mapping a key to open and focus the TOC as it no longer works as a toggle
(ex:
nnoremap <c-Tab> :VimtexTocToggle<CR><c-w>l
).Steps to reproduce
:VimtexTocToggle
<C-w>l
(or j if your split is horizontal):VimtexTocToggle
Expected behavior
The Toc window disapears and the cursor returns to the previous
tex
buffer.Actual behavior
ERROR:
Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: