当前位置:网站首页>VIM usage guide

VIM usage guide

2022-07-06 02:00:00 m0_ forty-six million four hundred and twenty-seven thousand tw

vim Use guide

Basic operation

  • Set label ::set nu
  • Split screen operation :
  1. Split screen ::sp test2.cpp
  2. Cursor moves to the next split screen :ctrl+w+j
  3. Move the cursor to the previous screen :ctrl+w+k
  4. Close the current split screen ::wq
  • Move between lines :
  1. Move to first line :gg
  2. Move to 10 That's ok :10g
  3. Move to the last 1 That's ok :G
  1. Moved to the beginning of a line :0
  2. Moved to the end of each line :$
原网站

版权声明
本文为[m0_ forty-six million four hundred and twenty-seven thousand tw]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140051389025.html