rewrite script according cmdline-complete.vim.