Sometimes, in Vim, I want to show only a specific part of a file (for example, a specific method) while hiding the rest.
This helps me to focus at the problem at han
Try the vim narrow plugin:
http://www.vim.org/scripts/script.php?script_id=2097
VIM also has the ability to fold code, but that may not map entirely to what you want.