fixed vim local function declaration