At first I am going try to explain you "order of opening". For example, if I'll open files in this order:
1_file.c 2_file.c 3_file.c 4_file.c
:ls command will give me:
:ls 1 "1_file.c" line 1 2 "2_file.c" line 1 3 # "3_file.c" line 1 4 %a "4_file.c" line 1
After if I'll jump into buffers
:b4, then if I'll invoke
:bp command then I would go in the buffer 3 or if i'll invoke (from buffer 4)
:bn I would go in the buffer 1. So I'll jump between buffers in order of opening.
But I want to simple method to jump between files in "order of accessing", for example from previous example if I'll jump into buffers
:b4. I want to jump back like:
buffer 3, and after jump forward like
buffer 4. I hope you guys understand what I mean. Is there native command in vim to achieve this?
I was searching on the Internet about this facility, but no luck. There are commands for jumping in history with CtrlO and CtrlI but it cause jumping inside of same file too.