/ Published in: Perl
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
Vi: Search and Replace
Change to normal mode with <ESC>.
Search (Wraped around at end of file):
Search STRING forward : / STRING.
Search STRING backward: ? STRING.
Repeat search: n
Repeat search in opposite direction: N (SHIFT-n)
Replace: Same as with sed, Replace OLD with NEW:
Between two lines #,#: :#,#s/OLD/NEW/g
URL: http://www.felixgers.de/teaching/emacs/vi_search_replace.html
Comments
 Subscribe to comments
                    Subscribe to comments
                
                