On Fri, Aug 01, 2014, Christian Brabandt wrote: > Hi Paul! > > On Do, 31 Jul 2014, Paul wrote: > > > NrrwRgn and […] don't save the original buffer when I write changes to > > the narrowed region. > > For whatever reason you want that, you should refer to the documentation > of NrrwRgn. It has an option g:nrrw_rgn_write_on_sync >
I see g:nrrw_rgn_write_on_sync was just deprecated; its replacement is a buffer-local hook: >From NarrowRegion.txt: | A third hook 'b:nrrw_aucmd_written' is provided, when the data is written back | in the original window. This allows to execute scripts, whenever the data is | written back in the original window. For example, consider you want to write | the original buffer whenever the narrowed window is written back to the | original window. You can therefore set: > | | :let b:nrrw_aucmd_written = ':update' | < | This will write the original buffer, whenever it was modified after writing | the changes from the narrowed window back. -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
