On Mon, Jul 21, 2014, at 04:42 PM, Paul wrote:
> Say you have a file that contains many code functions, and you're only
> concerned with one particular function. I wonder if there's a plugin that
> will let you select a part of a file, in this case our function, and
> limit vim 'things' to only this selected section. For example, doing a /
> search would only search within the target area. :%s// would only look
> inside the area, etc. I know I could copy the area to a new file, edit
> that, then paste it back, but I really want it the same file, because for
> example I might want to do a :make on it, which requires the other
> 'outside' bits of the file to be present.
>
> Anyone know if such a thing exists?
>
> --
> --
> 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.
Sounds like what the Narrow Region plugin does:
"This plugin is inspired by the Narrowing feature of Emacs and means to
focus on a selected region while making the rest inaccessible. You
simply select the region, call :NR and the selected part will open in a
new split window while the rest of the buffer will be protected. Once
you are finished, simply write the narrowed window (:w) and all the
changes will be moved back to the original buffer."
https://github.com/chrisbra/NrrwRgn/
Youen
--
--
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.
Monday, July 21, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment