Tuesday, February 24, 2015

Re: Enable Syntax on Xml Large File only on drawed window




On Tue, Feb 24, 2015 at 11:04 AM, Ben Fritz <fritzophrenic@gmail.com> wrote:
On Tuesday, February 24, 2015 at 9:24:34 AM UTC-6, Ni Va wrote:
> Hi,
>
> After applying this http://vim.wikia.com/wiki/Faster_loading_of_large_files, my big xml file is quick loaded.
>
> Then how can I set syn=xml only for drawed part of file in order to be as fast as possible to view colored part of file?
>
> Thank you

You can't enable syntax highlighting for only part of a file. Syntax highlighting always applies to the entire file.

I don't know if this would be helpful or fit your work flow, but I just tried it and it seems to work ok with a C file anyway. You can try to use Christian Brabandt's NrrwRgn plugin to open the section of interest in a 'narrowed region' and then enable syntax highlighting in only that region. Doing this did not effect the syntax highlighting of the full file, only the narrowed section.

You might try it out and see if it suits your fancy.

Cheers,

Ethan Alan


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment