Vim: temporarily show only specific lines

后端 未结 3 1777
你的背包
你的背包 2021-01-12 15:26

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

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-12 16:12

    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.

提交回复
热议问题