vim-Casing Changer

Source: Internet
Author: User

The following references self-http://blog.csdn.net/yangzhongxuan/article/details/8484167 have verified the effect

Command one: Single character conversion (the letter where the cursor is located is converted)

~ Change the case of the letter under the cursor 3~ the 3 letters starting at the cursor position (Zhangshuli cursor in z 3~ zhangshuli)

Command two: Word conversion (from where the cursor is, to the end of the word)

Guw/gue from the beginning of the cursor to the end of a word, changing the lowercase
Guw/gue from the beginning of the cursor to the end of a word, changing the capitalization
Gu5w/gu5e from the beginning of the cursor to the end of 5 words, changing the capitalization

Command three: line case conversion

g~~ change the case of the current line letter
GU0 to uppercase from the cursor position to the beginning of the line
gu$ to uppercase from the cursor position to the end of the line

Command four: whole article case conversion

Gggug
gg= cursor to the first character of the file
Gu= the selected range all lowercase
g= to end of file

Case conversion in Visual mode

U  Change the selected letter in the visual mode to capital Letter U  to change the selected letter in the visual mode all to lowercase

vim-Casing Changer

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.