Improve configurability of vim module

Change-Id: I1d46a80f32d13254438ba74d6ba0cac251b53b92