Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not able to write NR window to a file? #92

Open
pinggit opened this issue Mar 17, 2024 · 3 comments
Open

not able to write NR window to a file? #92

pinggit opened this issue Mar 17, 2024 · 3 comments

Comments

@pinggit
Copy link

pinggit commented Mar 17, 2024

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

@chrisbra
Copy link
Owner

chrisbra commented Mar 17, 2024

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.

@pinggit
Copy link
Author

pinggit commented Mar 18, 2024 via email

@chrisbra
Copy link
Owner

Sorry, I am not planning to make this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants