comparison plugin/lawrencium.vim @ 110:e66df94ebceb

adding HgCmdPost custom autocmd
author Ghennadi Pilipenco <pilipenco@molecularhealth.com>
date Tue, 16 Sep 2014 22:53:48 +0200
parents 497f7a481599
children 01edb7c58e0c
comparison
equal deleted inserted replaced
109:8ec747b13dc1 110:e66df94ebceb
877 endif 877 endif
878 let l:output = call(l:repo.RunCommand, a:000, l:repo) 878 let l:output = call(l:repo.RunCommand, a:000, l:repo)
879 if g:lawrencium_auto_cd 879 if g:lawrencium_auto_cd
880 execute 'cd! -' 880 execute 'cd! -'
881 endif 881 endif
882 silent doautocmd User HgCmdPost
882 if a:bang 883 if a:bang
883 " Open the output of the command in a temp file. 884 " Open the output of the command in a temp file.
884 let l:temp_file = s:tempname('hg-output-', '.txt') 885 let l:temp_file = s:tempname('hg-output-', '.txt')
885 split 886 split
886 execute 'edit ' . l:temp_file 887 execute 'edit ' . l:temp_file