2

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?

  • Try let g:Tex_SmartKeyDot = 0 – DG' Apr 29 at 16:31
  • See my answer here, though this is not a temporary solution – rkta Apr 29 at 17:42
  • thanks a lot ;-) – Thorbjørn E. K. Christensen Apr 29 at 21:24
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.