Thursday, February 26, 2015

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

On Tuesday, February 24, 2015 at 5:26:52 PM UTC+1, Ethan Hereth wrote:
> On Tue, Feb 24, 2015 at 11:04 AM, Ben Fritz <fritzo...@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+u...@googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.


Hi I resolevd it in vim74\syntax\xml.vim and just put maxlines=100

syn sync minlines=100
syn sync maxlines=100


Thank you !

--
--
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: