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?

3
  • 1
    Try let g:Tex_SmartKeyDot = 0
    – DG'
    Apr 29, 2019 at 16:31
  • See my answer here, though this is not a temporary solution
    – rkta
    Apr 29, 2019 at 17:42
  • thanks a lot ;-) Apr 29, 2019 at 21:24

1 Answer 1

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.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .