chrisbra/NrrwRgn

not able to write NR window to a file?

pinggit opened this issue · 3 comments

in NR window, I want to write the content to a file, but nothing happened...
is this expected?

I think so. I think you need to use :NRNoSyncOnWrite to make it write like an ordinary buffer. See the help:

*:NRNoSyncOnWrite* *:NRN*
:NRNoSyncOnWrite
:NRN Disable synching the buffer content back to the
original buffer when writing. When set, the
narrowed buffer behaves like an ordinary buffer
that you can write in the filesystem.
Note: You can still use |:WidenRegion| to write
the changes back to the original buffer.

Sorry, I am not planning to make this change.