# HG changeset patch # User Ludovic Chabant # Date 1601013021 25200 # Node ID 52e1502091e0124d3504a5b8785fca8f9f64b6a6 # Parent 14a272d72b0af623d366a3ed04683053957a090a Add P4Info command. diff -r 14a272d72b0a -r 52e1502091e0 autoload/p44vim.vim --- 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) diff -r 14a272d72b0a -r 52e1502091e0 plugin/p44vim.vim --- 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() command! -nargs=* -complete=file P4Edit :call p44vim#p4edit() command! -nargs=* -complete=file P4Revert :call p44vim#p4revert()