2

In vim-latexsuite how do I make vim completing references and equations labels with . in them? For example, I call the equations by chapters:

label{eq:intro.x}
label{eq:physics.y}

But then, when trying to reference these equations, by hitting Ctrl+n, vim doesn't recognize the . part and it just completes the first word. Any solution?

  • 1
    I don't use this plugin so my solution might be totally out but does :set iskeyword+=. would solve your problem? – statox Aug 16 '15 at 14:01
  • I think @statox may be right. Though, the completion you want works as expected withouth altering iskeyword in my plugin, vimtex, and I believe it also should work in LaTeX-Box. – Karl Yngve Lervåg Aug 16 '15 at 20:48
2

I took time to install vim-latexsuite and I can confirm that my comment was right: you simply have to execute :set iskeyword+=. to make completion work.

To avoid executing this function on each latex file you edit you can add the following line

setlocal iskeyword+=.

To the syntax file .vim/ftplugin/tex.vim

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.