Move vim specific functions to vim-utils