# HG changeset patch # User Ludovic Chabant # Date 1352960186 28800 # Node ID 220c9508ff62816dd4f2b8b8b3c90789150d689f # Parent 2b3fb72d54719e5b2115998add33187f6bca6e36 Fixes for Lawrencium files: - Move the cursor to the top of the buffer. - Insert stuff at the first line instead of below it. diff -r 2b3fb72d5471 -r 220c9508ff62 plugin/lawrencium.vim --- a/plugin/lawrencium.vim Mon Nov 12 16:47:50 2012 -0800 +++ b/plugin/lawrencium.vim Wed Nov 14 22:16:26 2012 -0800 @@ -238,7 +238,7 @@ let l:all_args = [a:command] + a:000 let l:hg_command = call(self['GetCommand'], l:all_args, self) call s:trace("Running Mercurial command: " . l:hg_command) - execute 'read !' . escape(l:hg_command, '%#\') + execute '0read !' . escape(l:hg_command, '%#\') endfunction " Build a Lawrencium path for the given file and action. @@ -1198,6 +1198,7 @@ setlocal nomodified setlocal bufhidden=delete setlocal buftype=nofile + goto " Remember the repo it belongs to and make " the Lawrencium commands available.