How to extract file names without paths in VIM configuration

Source: Internet
Author: User
The method of extracting files without paths in VIM configuration encountered a headache during the configuration of previewing php files with VIM: I don't know how to extract files without paths, this is because php file preview uses a combination of URLs and file names without paths. For example, exec & quot ;! Google-chro...
The method of extracting files without paths in VIM configuration encountered a headache during the configuration of previewing php files with VIM: I don't know how to extract files without paths, this is because php file preview uses a combination of URLs and file names without paths. For example, exec "! Google-chrome http: // 127.0.0.1/% ". In this case, enter" 127.0.0.1 // var/www/index. php ", an error will occur; then I searched on the Internet and finally found the solution, that is, using" %: t ", % is the file name with a path, followed by": t "indicates the file name without a path. in this way," 127.0.0.1/index. in this way, php can be previewed at any time during editing, which is much easier.
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.