[英]How to go back into previously visited folder in vim :Explore?
有时我需要回到以前访问的文件夹(而不是父文件夹),让我们举个例子:
:Explore
# we at /home/project
../
./
foo/
bar/
file
# now I press -, hence go to the parent directory /home
../
./
project/
# now I press - again, hence go to the root /
../
./
bin/
boot/
etc
# and here is the question..
如何返回初始project/
目录。 我期望bb
这样的东西可以回到先前的状态。 有办法吗?
在vim中跳转的标准方法之一是跳转列表。 来自:h jumplist
jumplist Jumps are remembered in a jump list. With the CTRL-O and CTRL-I command you can go to cursor positions before older jumps, and back again. Thus you can move up and down the list.
我建议阅读整个部分以了解更多信息。
对于您的用例,使用<co>
应该将您带回到netrw中的上一个缓冲区。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.