开发者

File navigation in Gvim

In Gvim 开发者_开发知识库is there any way to trace back a series of files opened using "gf"

File1 <gf> opens  File2 <gf> opens File3 <gf> opens File4 ...

I would like someway to go back to File1. Like Ctrl+6 except for the it toggles between last two files.


You can map a keystroke to execute :bp

nmap <keystroke> :bp<CR>

See :h :map for more information.


Like answered by freitass, a solution would be inserting following line in .gvimrc

nmap fg :bp<CR>

gf would navigate forward
fg would navigate backward

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜