An Interest In:
Web News this Week
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
- April 18, 2024
- April 17, 2024
April 5, 2022 02:40 am GMT
Original Link: https://dev.to/iqium/vim-usage-5aa1
VIM usage
Today I suddenly wanted to learn vim on a whim, and opened youtube to learn from blogger Huang Haojie. Here are some notes below.
The address of his video: vim2 - YouTube
- w the next word
- B the previous word
- H: left
- Lright
- Jdwon
- kup
- ctrl + F turn up
- ctrl + D: turn down
xxx(line number) + gg: jump to the specified line
xxx(line number) + j: jump xxx lines down
xxx(line number) + k: jump xxx lines up
- / + xxx(the word to find): find all the specified word
we can jump by pressing on the N key on the keyboard.Instead,we can use the shift + n to find the previous word.
- cc: cut a specified line
we can also cut specified lines use the command of 'cc', for example, if we want to cut 2 lines, we can use this command: 'c2c'.
- u: revoke the previous operation
- p: paste
This is the first time for me to write a blog in English, so if there is a mistake, please correct me.
Original Link: https://dev.to/iqium/vim-usage-5aa1
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To