Skip to content

Table of Contents removes alternate file  #2073

@tomvam

Description

@tomvam

Opening Vimtex's Table of Contents removes Vim's alternate file.

  1. Edit the file below.

  2. Compile to create highlight.bib.

  3. e highlight.bib to open an alternate file.

  4. ctrl-^ three times to switch back to the .tex file and forth and back again.

  5. <local-leader>lt to open the TOC.

  6. ctrl-^ to switch to the alternate file.

    "E23: No alternate file"

This behavior doesn't occur with Vundle's PlugInList, which similarly opens a new buffer in a split. The alternate file is retained after closing the split.

\documentclass{article}
\usepackage[style=verbose-ibid]{biblatex}
\addbibresource{highlight.bib}

\begin{filecontents}{highlight.bib}

@book{Hemingway:For_Whom_the,
	author   = {Earnest Hemingway},
	title    = {For Whom the Bell Tolls},
	date     = {1940},
	publisher  = {Simon \& Schuster},
}

\end{filecontents}

\begin{document}

\section{Introduction}

Some text here.\autocite[10]{Hemingway:For_Whom_the}

\end{document}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions