Mar*_*off 381
可视选择文本,然后U选择大写或u小写.要在视觉选择中交换所有套管,请按~.
不使用视觉选择,gU<motion>将使字符为motion大写,或gu<motion>用于小写.
有关其中的更多信息,请参阅Vim的change.txt帮助文件中的第3节.
ung*_*ban 271
请参阅以下方法:
~ : Changes the case of current character
guu : Change current line from upper to lower.
gUU : Change current LINE from lower to upper.
guw : Change to end of current WORD from upper to lower.
guaw : Change all of current WORD to lower.
gUw : Change to end of current WORD from lower to upper.
gUaw : Change all of current WORD to upper.
g~~ : Invert case to entire line
guG : Change to lowercase until the end of document.
Run Code Online (Sandbox Code Playgroud)
另外,虽然都说了,但并不是为了视觉选择:
有运算符:
用法:运算符运动 请参阅:h operator和:h motion
运营商可以是
c change
d delete
gu make lowercase
gU make uppercase
...
Run Code Online (Sandbox Code Playgroud)
这些动议大多是众所周知的:
0 first character of the line
$ end of line
aw a word
iw inner word
...
Run Code Online (Sandbox Code Playgroud)
所以你必须记住一些操作员和动作(有很多,但你会有一些最喜欢的)。
这样你就得到了上面@ungalnanban的列表。
在Vim 备忘单上找到- devhints.io