Use the bufpos and buftabs plug-ins in VIM to implement file tag-based Management

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.