reduce the number of Vim script evaluation in ruby part