Rand stuff and some code completion stuff for vim.