Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何返回到vim:Explore中以前访问过的文件夹?_Vim - Fatal编程技术网

如何返回到vim:Explore中以前访问过的文件夹?

如何返回到vim:Explore中以前访问过的文件夹?,vim,Vim,有时我需要回到以前访问过的文件夹(不是父文件夹),让我们举个例子: :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

有时我需要回到以前访问过的文件夹(不是父文件夹),让我们举个例子:

: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
的东西,其中b返回到以前的状态。方法是什么?

在vim中跳转的标准方法之一是跳转列表。从
:h跳线列表

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. 跳投名单 跳转在跳转列表中被记住。使用CTRL-O和CTRL-I命令 可以在较旧的跳跃之前转到光标位置,然后再返回。这样你就可以 在列表中上下移动。 我建议阅读整个部分以了解更多信息

对于您的用例,使用
应该会使您回到netrw中的前一个缓冲区。

使用
有效吗?(即回到跳转堆栈中)是的!太好了把它作为答案贴出来。你在哪里找到的?
也请继续!)