Parcourir la Source

added install command

bmallred 10 ans auparavant
Parent
Commettre
15348b880b
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 1 1
      autoload/vs/cmd.vim
  2. 1 0
      ftplugin/vs/commands.vim

+ 1 - 1
autoload/vs/cmd.vim

4
4
5
function! vs#cmd#Build(bang,...)
5
function! vs#cmd#Build(bang,...)
6
    echon "vim-vs: " | echohl Identifier | echon "building..." | echohl None
6
    echon "vim-vs: " | echohl Identifier | echon "building..." | echohl None
7
    silent! exe 'make!'
7
    silent! exe 'make! '. a:bang
8
    redraw!
8
    redraw!
9
    if !a:bang
9
    if !a:bang
10
        cwindow
10
        cwindow

+ 1 - 0
ftplugin/vs/commands.vim

4
let g:vs_loaded_commands = 1
4
let g:vs_loaded_commands = 1
5
5
6
nnoremap <silent> <Plug>(vs-build) :<C-u>call vs#cmd#Build('')<CR>
6
nnoremap <silent> <Plug>(vs-build) :<C-u>call vs#cmd#Build('')<CR>
7
nnoremap <silent> <Plug>(vs-install) :<C-u>call vs#cmd#Build('install')<CR>
7
nnoremap <silent> <Plug>(vs-doc) :<C-u>call vs#doc#OpenBrowser()<CR>
8
nnoremap <silent> <Plug>(vs-doc) :<C-u>call vs#doc#OpenBrowser()<CR>