Insert text for multiple lines at the same position
- ctrl + v, (selecting multiple lines), I, (type something you want), ESC.(After you press I, the highlight would disappear, don’t worry. Just type anything you want, then Press Esc.)
vim build-in file explorer
- :Explore<CR>(It allows you to navigate through your source code, and you also can make file modification.)
- -: The most useful: Change to upper directory (cd ..)
- mf: Mark a file
- D: Delete marked files or the file the cursor is on, if nothing ismarked.
- R: Rename the file the cursor is on.
- d: Create a new directory in the current directory
- %: Create a new file in the current directory
Go to last modification position
- gi
Increment the number you are standing on
- Ctrl+A
No comments:
Post a Comment