Bufpos Plugin:
Http://www.vim.org/scripts/script.php? Script_id = 1, 1836
Buftabs plug-in:
Http://micampe.it/files/buftabs.vim
This is the buftabs version that the author of bufpos has made minor changes.
Put the downloaded bufpos. vim and buftabs. Vim
~ /. Vim/plugin/below
Vim is not necessarily the address above, but you can create such a directory by yourself to store the plug-in you downloaded, and also facilitate Backup management.
Then in ~ /. Add the following content to the vimrc file (the custom configuration information created by myself is written here:
"Buftabs settings
Set laststatus = 2
Let G: buftabs_in_statusline = 1 "display label bar
Map <c-B>: bprev! <CR> "set the shortcut key for backward switching"
Map <c-N>: bnext! <CR> "set the shortcut key for forward switching"
Then open gvim. When multiple files are opened, the open files are displayed in the following column in the file window:
1-Program/test/a. C and 2-Program/test/B. C
In this case, you can switch the code in two ways:
1. Switch Ctrl-N backward or Ctrl-B forward
The second is: Alt-N (N is a number, such as 1 or 2 above)
By: Hong gunwei