Extract shell vi mode config