Wednesday, July 31, 2019

Re: file subset of file updated

On 2019-07-31 12:15, Bee wrote:
> Does vim have the ability to reference a file made of files?
>
> file A is a subset of file B
> file A = text
> file B = file A plus more text
>
> When file A is updated opening file B shows the changes

Not out of the box AFAIK.

It would help to know the type of inclusion: are these C-style
#include files? or are they LaTeX with \input{filename} style
includes? And what tooling are you using to generate the resulting
file you want to view?

My first inclination would be to lean on make(1) to generate the
output file based on the input files (updating based on their
changes), then create an autocmd (`:help autocmd` and `:h
BufWritePost`) that runs :make when you save and optionally loads the
results into a preview window.

-tim


--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20190731142857.60bfe8c2%40bigbox.christie.dr.

No comments:

Post a Comment