Obtain the Vim ex command output

Source: Internet
Author: User
Obtain the Vim ex command output. if you want to know whether the python option is enabled during Vim compilation, you want to know which vimscripts are loaded when Vim is started. You may know which ex commands are used. However, you cannot search for the output of these commands. Sometimes you help others diagnose remotely, such... obtain the Vim ex command output. if you want to know whether the python option is enabled during Vim compilation, you want to know which Vim scripts are loaded when vim is started. You may know which ex commands are used. However, you cannot search for the output of these commands. Sometimes you can help others remotely diagnose the problem. it is more convenient to obtain the output text files. To use normal vim text processing techniques to filter and process the output of these ex commands, you must first redirect these outputs. This is exactly when the redir command comes in handy. This command can redirect the output of any ex command to a file, named or anonymous register, system clipboard, or vim script variable. In the example of returning www.2cto.com to version, to output the command to a file, follow these steps: Vim code 1.: redir> vim_version_output.txt 2.: version 3.: redir END www.2cto.com
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.