I have a lot of buffers open and to switch between then I Ctrl+w and then Ctrl+[movement key]. Is there a better way? Because this way when I’ve to do more than one movement I end up having to press 4 keys.
I have a lot of buffers open and to switch between then I Ctrl+w
Share
If you want to move between windows, you always can map
Ctrl-W, H/J/K/Lto anything you want:If you want to move between buffers, you can use
:buffercommand, print a part of the file name you want to go to: pressingTabwill cycle through all files that contains this part in the names. E.g you want to show buffer with filename ‘some_long_c_file.c’ and you know you don’t have any other opened file whose name ends with ‘file.c’: just type:buffer file.cand pressTab(or even ‘ile.c’ or shorter), this will complete it to ‘some_long_c_file.c’.For quick switching between the two last buffers, use
Ctrl-^