add D function to vimrc