Skip to content

Instantly share code, notes, and snippets.

@tataue
Last active October 11, 2021 03:01
Show Gist options
  • Save tataue/8319d4405deb4cad2fee1ec4bf668d0d to your computer and use it in GitHub Desktop.
Save tataue/8319d4405deb4cad2fee1ec4bf668d0d to your computer and use it in GitHub Desktop.
[vim] vim tips and other things to remember #vim

resize on some case

The window can be resized with the usual [count]CTRL-W + >, <, +, - keys, and CTRL-W + = will resize it back to the initial size.

increase decrease

  • Ctrl + A - increase number
  • Ctrl + X - decrease number

大小写转换

选中模式(命令在选中后)

  1. 选中模式
  2. gu --> 小写
  3. gU --> 大写

单词、移动(命令在前)

  1. guw 、gue
  2. gUw、gUe
  3. gU0、gU$

整片(命令在中间)

  1. gg-gu-G
  2. gg-gU-G
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment