vim - vim中如何改变netrw树的根?

标签 vim netrw

标题总结了它,真的。我想知道在 vim 中使用 netrw 浏览文件时如何设置树的当前根。

有任何想法吗?

最佳答案

您还可以使用“ gn ”映射将当前目录更改为光标下的文件夹。

CHANGING TREE TOP netrw-ntree :Ntree netrw-gn {{{2

One may specify a new tree top for tree listings using

    :Ntree [dirname]

Without a "dirname", the current line is used (and any leading depth information is elided). With a "dirname", the specified directory name is used.

The "gn" map will take the word below the cursor and use that for changing the top of the tree listing.

关于vim - vim中如何改变netrw树的根?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21996768/

相关文章:

vim - 在 Vim 中同时显示相对行号和绝对行号

file - vim 将通过 CLI 打开的文件添加到 :e history

vim - 如何在vim中将列表附加到文件中?

vim - 使用 vim 打开目录时,为什么尝试用鼠标选择文本会出现错误“"E21: Cannot make changes, ' modulated' is off”?

vim - 在指定的拆分中从.netrw打开文件

vim - 如何使用netrw-C?

vim - 无法重置 vim 中的全局标记

vim/文件浏览器 : make browsing directory the current directory

vim - 为什么 Vim 在编辑目录时会创建一个名为 "~"的空目录?

git - 使用 vimdiff 查看所有 `git diffs`