C/h file switch Vim

Source: Internet
Author: User

Switch between C/H files in VIM practical technology-plug-in:
Http://www.vim.org/scripts/script.php? Script_id = 31
Version
Install Place a. Vim IN ~ /. Vim/plugin folder
Manual None

The following describes its usage:
As a CProgramPersonnel, switching between the source file and the header file during daily coding is nothing more common. Using Vim to open its source/header file is actually not a problem, but I switched over with only one button. What a caring function is this ....
After installing a. Vim, you can use the following commands:

: Switch to C \ hfile in The New Buffer
: Split the window horizontally and open the c \ H file
: AV Vertically split the window and open the c \ H file
: Create a new tab and open the c \ H file

There are other commands you can view on its webpage. I have never used them. In fact, they are all the same. Just find your best choice.

I am in ~ /. Added the following statement to vimrc:

Nnoremap <silent> <F12>: A <CR>

It means to open the c \ H file in a new buffer at F12, so that when writing a program, you can switch between C/H files without thinking about it, this reduces the number of buttons, making your thinking smoother.

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.