Re: [NTG-context] ANN: Updated Vim scripts for METAFONT/MetaPost
![](https://secure.gravatar.com/avatar/090d700659c29b78036a4502f251f5e3.jpg?s=120&d=mm&r=g)
18 Sep
2016
18 Sep
'16
6:05 a.m.
On 2016-09-18 10:46:44 +0000, Nicola said:
I have updated the {mf,mp}.vim scripts in Vim
ConTeXt users will benefit from these scripts, too, inside MetaPost environments.
Put these lines in ./vim/after/ftplugin/context.vim: setlocal omnifunc=syntaxcomplete#Complete let g:omni_syntax_group_include_context_mp='mf\w\+,mp\w\+' (note the ..._context_mp) and set the filetype of your document as follows: :set ft=context.mp The only drawback is that indentation rules are applied throughout the whole document, not only to the MetaPost parts. Depending on how many 'if' and 'forever' there are in your novel, it might get annoying. Nicola
2888
Age (days ago)
2888
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nicola