" nomadproject.vim - basic vim/nomad integration " Maintainer: HashiVim if exists("g:loaded_nomadproject") || v:version < 700 || &cp || !executable('nomad') finish endif let g:loaded_nomadproject = 1 function! s:commands(A, L, P) return join([ \ "run", \ "stop", \ "status", \ "alloc", \ "job", \ "node", \ "agent", \ "acl", \ "agent-info", \ "deployment", \ "eval", \ "namespace", \ "operator", \ "quota", \ "sentinel", \ "server", \ "ui", \ "version" \ ], "\n") endfunction augroup nomadproject autocmd! autocmd VimEnter * \ command! -nargs=+ -complete=custom,s:commands Nomad execute '!nomad '. augroup END " vim:set et sw=2: