The vi editor is a popular and powerful text editor available on Unix-like operating systems, including Linux. It stands for “visual editor” and is known for its efficiency, versatility, and ubiquity. Here are some key features and characteristics of the vi editor:
THREE MODES
| Command mode(esc) |
| Insert mode(i) |
| Execution mode(:wq) |
| #find a word | ?name or /name (shift+n or n) |
| #Replace a word: | :%s/old-name/replace-name/g |
| #delete lines | dd |
| #Delete five lines | press 5 then dd |
| #copy line: | yy |
| #paste line | p |
| #go to end line | shift +gg |
Leave a comment