t-vim: unwanted space after vimtyping
Hello, I've tried to put a \relax at the end of the input file (file generated by vim) and also done some experiments with \removeunwantedspaces but I could not get rid of the space (vertical or horizontal) after the vim-typing. Here an example, showing the problem: \usemodule[vim] \setupwhitespace[big] \definevimtyping[C][syntax=c] \starttext no problem before the typing \startC bla \stopC horizontal space added \startC bla \stopC too much vertical space \stoptext TIA for any help, Peter -- Contact information: http://pmrb.free.fr/contact/
On Mon, 20 Jul 2009, Peter Münster wrote:
\usemodule[vim] \setupwhitespace[big] \definevimtyping[C][syntax=c] \starttext no problem before the typing \startC bla \stopC horizontal space added
\startC bla \stopC
too much vertical space \stoptext
I found a workaround: \setupvimtyping[after=\vskip-\lineheight] Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/
On Mon, 20 Jul 2009, Peter Münster wrote:
Hello,
I've tried to put a \relax at the end of the input file (file generated by vim) and also done some experiments with \removeunwantedspaces but I could not get rid of the space (vertical or horizontal) after the vim-typing. Here an example, showing the problem:
\usemodule[vim] \setupwhitespace[big] \definevimtyping[C][syntax=c] \starttext no problem before the typing \startC bla \stopC horizontal space added
\startC bla \stopC
too much vertical space \stoptext
TIA for any help, Peter
This is because of the naive way in which I have implemented line numbering. If you do not need linenumbering, remove \strut from the definition of \def\obeyedline{\placevimlinenumber\par\strut}% in \initializevimtyping. I will try to clean up the vim module. The whole thing can be done much more cleanly in lua. Aditya
participants (2)
-
Aditya Mahajan
-
Peter Münster