Regex replacement in vim editor

31.05.13 09:07 AM By ssathishskumar

Replace pattern1 with pattern2 :

:%s/pattern1/pattern2/gc

Replace all whitespaces :

:%s/\s\+//gc

ssathishskumar