Mercurial > vim-p44vim
changeset 4:52e1502091e0 default tip
Add P4Info command.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 24 Sep 2020 22:50:21 -0700 |
parents | 14a272d72b0a |
children | |
files | autoload/p44vim.vim plugin/p44vim.vim |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/autoload/p44vim.vim Thu Sep 24 22:50:09 2020 -0700 +++ b/autoload/p44vim.vim Thu Sep 24 22:50:21 2020 -0700 @@ -83,6 +83,10 @@ " Commands {{{ +function! p44vim#p4info() abort + echom s:run_perforce_command(['info']) +endfunction + function! p44vim#p4sync(...) abort let l:cmd = ['sync'] + a:000 call s:run_perforce_command(l:cmd)
--- a/plugin/p44vim.vim Thu Sep 24 22:50:09 2020 -0700 +++ b/plugin/p44vim.vim Thu Sep 24 22:50:21 2020 -0700 @@ -31,6 +31,7 @@ " P4 Commands {{{ +command! P4Info :call p44vim#p4info() command! -nargs=* -complete=file P4Sync :call p44vim#p4sync(<f-args>) command! -nargs=* -complete=file P4Edit :call p44vim#p4edit(<f-args>) command! -nargs=* -complete=file P4Revert :call p44vim#p4revert(<f-args>)