Why vi
fast and easy
Basic modes-
edit and command,
‘esc’
for command mode
‘i, a’
for edit mode (insert or append mode)
:q
for quit
:w
for write
:q!
quit without save
:e
open another file for editing
:wq
write and quit
in command mode, what does ‘/’ let you do?
allows you to search for a word
‘n’
for forward search
‘N’
for backward search
what whill this command do? :s/ram/mohan
-will search string “ram” and replace with “mohan”