On Mon, 6 Jan 2025, Ryszard Kubiak wrote:
Hi,
I don't know whether the audience of this mailing list can help me with a problem concerning the VIM module or I should personally ask Aditya for help.
The problem is that when I define an environment based on VIM's mechanisms and use this environment surrounded with ConTeXt's narrowing commands then these commands are ignored. You can see this effect in the PDF obtained by contexting the script given below.
See https://github.com/adityam/filter/blob/dev/vim-README.md#adding-left-margin You need to add `margin=1.5em` to change the left margin of the vimtyping environment. The reason for this is that the vim typing environment includes a `\forgetall` at the start, due to which the current value of \leftskip is lost. Aditya PS: You can set font size by using `style={\switchtobodyfont[9pt]}` instead of adding it in the before and after key.