4. Find
With this type of vi editor commands we can search words in the file.
- /<word> ===> find the word
- n ===> go to the next word
5. Undo / Redo
With this type of vi editor commands we can undo & redo the changes made to the file.
- u ===> undo the last action
- Ctrl+r ===> redo the last action
- . ===> repeat the last action
6. Moving between lines
With this type of vi editor commands we can move between lines of the file.
- :1 ===> go to the first line
- [[ ===> Same as above
- gg ===>Same as above
- :$ ===> go to the last line
- ]] ===> Same as above
- G ===> Same as above
- w ===> go to the next word
- b ===> go to the previous word
- :@ ===> go to the @ line ( @ = line number )
- @G ===> Same as above
Leave a Reply