In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces you the actual operation of Python configuration and how to apply, the content is very detailed, interested friends can refer to, hope to be helpful to you.
The default configuration of Vim has limited support for Python, so you can improve the efficiency of writing Python programs in Vim by installing plug-ins and other methods.
< typetype="text/javascript">Add the following settings to ~ / .vimrc for indentation: "automatically detect file types and load the appropriate settings."
Filetype plugin indent on
It is recommended that Tab should not appear in the Python configuration file, but spaces should be used instead, and four spaces should be indented. Therefore, you can add again:
Autocmd FileType python setlocal et sta sw=4 sts=4
Tip:
For more information about the above settings, see Vim code indentation settings.
Better syntax highlighting
The default Python syntax highlighting function is limited, such as no highlighting for numbers.
Annotation management
Vim plug-ins EnhCommentify or comments provide annotation management capabilities. See vim and program notes for details.
Enhanced code completion hint
Vim's code completion function (Ctrl-N) is useful (see VI (VIM) programming tips). The default Vim can only recognize variable names in the current file, which makes it meaningless for the code to complete the library functions for Python. [1] pydiction has changed this situation, and Python configuration can help realize the automatic completion of Python library functions.
On the actual operation of Python configuration and how to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.