Vim insert Template File

Source: Internet
Author: User

In the past two days, wxpython routines have to be written repeatedly every time files are created.CodeSo I thought about whether a template exists. I can directly insert it into. Google, which is easy to solve. For example, the following is the template file I want to insert, which is stored as template. py.

 #  /Usr/bin/Python  #  -*-<Coding = UTF-8> -*-  """  This example shows...  """  Class  Frame (wx. Frame ):  Def   _ Init __  (Self): WX. Frame.  _ Init __ (Self, parent = none, id =-1, Title = "" , Pos = wx. defaultposition, size = Wx. defaultsize)  If   _ Name __ = "  _ Main __  "  : App = Wx. pysimpleapp () Frame = Frame () frame. Show () app. mainloop () 

 

When creating a new file, you only need to enter the R (read) command in edit mode. This is really convenient:

: R template. py

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.