代码之家  ›  专栏  ›  技术社区  ›  Amir Rachum

在Vim中更换外壳

vim
  •  209
  • Amir Rachum  · 技术社区  · 14 年前

    Vim中是否有更改所选文本大小写的命令?

    2 回复  |  直到 5 年前
        1
  •  563
  •   Community CDub    5 年前

    Visual select the text U u 小写。要交换视觉选择中的所有大小写,请按

    不使用视觉选择, gU<motion> 将使角色 motion gu<motion>

    有关更多信息,请参阅中的第3节 Vim's change.txt 帮助文件。

        2
  •  379
  •   Kes    3 年前

     ~    : 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
    
     g~w  : Invert case to current WORD
    
     guG  : Change to lowercase until the end of document.
    
     gU)  : Change until end of sentence to upper case
    
     gu}  : Change to end of paragraph to lower case
    
     gU5j : Change 5 lines below to upper case
    
     gu3k : Change 3 lines above to lower case