003_vim using Tip

Source: Internet
Author: User

Vim uses tip to write Python programs
    1. Insert header information automatically:
      • #!/usr/bin/env python
      • # coding=utf-8
    • Enter . or press TAB key to trigger the code completion function
    • :wCode errors and specifications are checked automatically after the code is saved
    • Press to F6 pep8 optimize code format by format
    • Press F5 to execute code with one click
Multi-window operation
    1. Use :sp + 文件名 to split a window horizontally
    • Use :vs + 文件名 to split a window vertically
    • Use Ctrl + w to quickly switch between windows
Writing markdown Files
    1. When writing the markdown file ( *.md ), press in normal mode to md generate the corresponding file in the current directory html
    • After the build or in normal mode fi , you can use Firefox to open the appropriate html file preview
    • Of course, you can also use the Universal F5 key to convert and open the preview in one click
    • If there is some confusing information on the screen during the opening process, you can press Ctrl + l to restore
Quick Notes
    • Press \ to automatically annotate according to file type

003_vim using Tip

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.