Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand that VIM automatically completes parentheses and quotation marks

2026-02-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Today, I will talk to you about how to understand VIM automatically complete parentheses and quotation marks, many people may not understand, in order to make you better understand, the editor summed up the following, I hope you can gain something according to this article.

Append the following to the ~ / .vimrc file:

Inoremap (() I

Inoremap [[] i

Inoremap {{} i

Inoremap < I

Inoremap''I

Inoremap "I

-here are other configurations I like to use-

Set ts=4

Set number

Set ruler

Syntax on

Set mouse=a

Set cindent

Set shiftwidth=4

Set expandtab

After reading the above, do you have any further understanding of how to understand VIM's automatic completion of parentheses and quotation marks? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

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.

Share To

Development

  • How does html realize that the script never goes wrong

    This article will explain in detail how to achieve html script never go wrong, the editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article. Scripts never go wrong

    12
    Report