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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.