Mercurial > vim-lawrencium
diff plugin/lawrencium.vim @ 47:edc43c59b3b8
avoid conflicts with plugins like minibufexplorer that might open a buffer when a new one is created
author | Sylvain Soliman <Sylvain.Soliman@m4x.org> |
---|---|
date | Sun, 04 Nov 2012 16:13:23 +0100 |
parents | ea0ae8f6af81 |
children | 85e39bdd7089 |
line wrap: on
line diff
--- a/plugin/lawrencium.vim Tue Aug 28 21:37:53 2012 -0700 +++ b/plugin/lawrencium.vim Sun Nov 04 16:13:23 2012 +0100 @@ -314,7 +314,7 @@ " Open the output of the command in a temp file. let l:temp_file = s:tempname('hg-output-', '.txt') execute 'pedit ' . l:temp_file - wincmd p + wincmd P call append(0, split(l:output, '\n')) else " Just print out the output of the command. @@ -397,7 +397,7 @@ let l:status_lines = split(l:status_text, '\n') execute "setlocal previewheight=" . (len(l:status_lines) + 1) execute "pedit " . l:temp_file - wincmd p + wincmd P call append(0, l:status_lines) call cursor(1, 1) " Make it a nice size. @@ -897,7 +897,7 @@ " and paste the `hg log` output in there. let l:temp_file = s:tempname('hg-log-', '.txt') execute "pedit " . l:temp_file - wincmd p + wincmd P execute "read !" . escape(l:log_command, '%#\') " Setup the buffer correctly: readonly, and with the correct repo linked