3

Vim latex suite automatically turns ... into \ldots This is nice in text, but when writing tikz figures, one often needs to write the like of (MWE):

\documentclass[border = 5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
%%%%%%%%% THE TWO FOLLOWING LINES ARE THE IMPORTANT ONES %%%%%%%%%%
\foreach \x in {1, 2,...,10}
\draw (\x,0) -- (0,\x);
%%%%%%%%% END OF IMPORTANT LINES %%%%%%%%%%
\end{tikzpicture}
\end{document}

here the vim latex suite likes turning ... into \ldots

Is there any way to make vim ignore the three dots for a while?

1 Answers1

2

To (on a one-off basis) avoid triggering an IMAP entry using Ctrl+v (in insert mode) will insert the next character literally, as such .,.,Ctrl+v,. leaves ... rather than triggering the \ldots replacement.

This question elsewhere on the network discusses Ctrl+v in insert mode in slightly more detail.

Dai Bowen
  • 6,117