Nginx Cache Invalidation--vim Select U convert all sizes to lowercase

Source: Internet
Author: User

VIM handles case conversion of characters~ Change the case of the letter under the cursor

3~ 3 letters starting at the cursor position to change their case

g~~ change the case of the current line letter

U Change the selected letter in visual mode to uppercase

U change the selected letter in visual mode to lowercase

GUU change the current line's letter to uppercase

Guu change the letter of the current line all to lowercase

3gUU starts from the cursor to the following 3 lines of letters to uppercase

Guw the word under the cursor to uppercase.

Guw Change the word below the cursor to lowercase.

The command for case conversion in Vim is
Gu or gu the explanation of the image is that the small u means to lowercase; big u means to capitalize.

All that is left is the qualification of the two commands (the line, the letter, the word), etc.

1, whole article capitalization converted to lowercase
When you open a file, you do not need to enter command line mode. Type: Gggug

explain: Gggug divided into three sections gg gu G
gg= cursor to the first character of the file
Gu= the selected range all lowercase
g= to end of file

2, the whole article lowercase converted to uppercase
When you open a file, you do not need to enter command line mode. Type: Gggug

explain: Gggug divided into three sections GG GU G
gg= cursor to the first character of the file
gu= all uppercase in the selected range
g= to end of file

3. Convert only one word

GUW, GUE
GUW, GUE
The words that follow the cursor are then converted to uppercase and lowercase.
The command to convert 5 words is as follows:
gu5w, gu5e
gu5w, gu5e

4, convert the case of a few lines

Position the cursor on the line that you want to convert, type: 1gU lowercase to uppercase conversions from the line below the cursor
10gU, a 11-line lowercase to uppercase conversion
And so on, there are other uppercase and lowercase conversion commands
GU0: From the position of the cursor to the beginning of the line, it becomes uppercase
gu$: From the cursor position to the end of the line, it becomes uppercase
GUG: From the cursor position to the last character of the article, all uppercase
GU1G: From the position of the cursor to the first character of the article, to uppercase sometimes with vim, and then accidentally pressed a command, but did not find himself, and then has been the pit, Nginx

Proxy_set_header X-real-ip $remote _addr;
Proxy_set_header x-forwarded-for $proxy _add_x_forwarded_for;
Proxy_set_header host $host;
Proxy_set_header X-nginx-proxy true;

This piece all turned to lowercase do not know, and then the cache does not work, Nginx did not error , every request to access the server download more than 10 m of things, check for a long time did not find, measured a few machine other not this situation,

The last two Nginx config files were found to be the problem.

Nginx Cache Invalidation--vim Select U convert all sizes to lowercase

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.