Using Unix Home Using Unix 1 Using Unix 2 Using Unix 3

 

search and replace, undo/redo

pay attention to the bottom status bar!

action emacs vim (in command mode)
move to beginning of file alt-< 1G or gg
move to end of file alt-> G
search control-s pattern /pattern
search again hit control-s again (ENTER to quit) n
search and replace with confirmation go to start of file, alt-shift-%, then enter old and new strings (then y or n to replace or not) :g/old/s//new/c
undo control-x u u
redo SPACE, then undo, undo control-r
cancel command control-g ESC
revert back to last saved state alt-x revert-buffer :e!

HOME | BACK | NEXT