You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
566 B
VimL
28 lines
566 B
VimL
6 years ago
|
" ottoproject.vim - basic vim/otto integration
|
||
|
" Maintainer: HashiVim <https://github.com/hashivim>
|
||
|
|
||
|
if exists("g:loaded_ottoproject") || v:version < 700 || &cp || !executable('otto')
|
||
|
finish
|
||
|
endif
|
||
|
let g:loaded_ottoproject = 1
|
||
|
|
||
|
function! s:commands(A, L, P)
|
||
|
return join([
|
||
|
\ "build",
|
||
|
\ "compile",
|
||
|
\ "deploy",
|
||
|
\ "dev",
|
||
|
\ "infra",
|
||
|
\ "status",
|
||
|
\ "version"
|
||
|
\ ], "\n")
|
||
|
endfunction
|
||
|
|
||
|
augroup ottoproject
|
||
|
autocmd!
|
||
|
autocmd VimEnter *
|
||
|
\ command! -nargs=+ -complete=custom,s:commands Otto execute '!otto '.<q-args>
|
||
|
augroup END
|
||
|
|
||
|
" vim:set et sw=2:
|