" my macros for BitKeeper " " shortcuts are organized such that " b* performs simple bk operations " B* executes one of the bk GUI programs " " a runtime list of mappings can be generated with b? " " ASIDE: unless changed, in my configuration is bound to , " " --------------------------------------------------------------------------- " help for this menu :map b? :call MyBkCmdList() " --------------------------------------------------------------------------- " single file ops :map be :!bk edit %:e! :map bd :call MyBkFileDelta(expand("%")) :map b= :call MyBkFileDiffs(expand("%")) " --------------------------------------------------------------------------- " global ops :map bp :!bk pending:e! :map bc :!bk commit:e! " --------------------------------------------------------------------------- " invoke GUI tools :map Bc :!bk citool:e! :map Br :!bk revtool:e! " --------------------------------------------------------------------------- " do a bk delta function! MyBkFileDelta(file) let l:line = "echo ===================================================" let l:info = "echo 'diffs for " . a:file . "'" let l:diff = "bk diffs " . a:file let l:cmd = l:line .";" . l:info . ";" . l:line . ";" . l:diff exec "!" . l:cmd . ";echo;echo;bk delta " . a:file endfunction " --------------------------------------------------------------------------- " print changes in file function! MyBkFileDiffs(file) let l:line = "echo ===================================================" let l:info = "echo 'diffs for " . a:file . "'" let l:diff = "bk diffs " . a:file let l:cmd = l:line .";" . l:info . ";" . l:line . ";" . l:diff exec "!" . l:cmd endfunction " --------------------------------------------------------------------------- " dump list of commands that are bound to [bB] function! MyBkCmdList() echo 'generic mapping' map b echo 'gui mappings' map B endfunction