comparison plugin/lawrencium.vim @ 28:0cdfdab43907

`Hgcommit` now puts the cursor at the beginning of the commit message.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 20 Dec 2011 16:15:11 -0800
parents 09115be355e2
children 35d097b9513c 3a0f7bb6ea64
comparison
equal deleted inserted replaced
27:09115be355e2 28:0cdfdab43907
619 let l:commit_path = s:tempname('hg-editor-', '.txt') 619 let l:commit_path = s:tempname('hg-editor-', '.txt')
620 let l:split = a:vertical ? 'vsplit' : 'split' 620 let l:split = a:vertical ? 'vsplit' : 'split'
621 execute l:split . ' ' . l:commit_path 621 execute l:split . ' ' . l:commit_path
622 call append(0, ['', '']) 622 call append(0, ['', ''])
623 call append(2, split(s:HgCommit_GenerateMessage(l:repo), '\n')) 623 call append(2, split(s:HgCommit_GenerateMessage(l:repo), '\n'))
624 call cursor(1, 1)
624 625
625 " Setup the auto-command that will actually commit on write/exit, 626 " Setup the auto-command that will actually commit on write/exit,
626 " and make the buffer delete itself on exit. 627 " and make the buffer delete itself on exit.
627 let b:mercurial_dir = l:repo.root_dir 628 let b:mercurial_dir = l:repo.root_dir
628 setlocal bufhidden=delete 629 setlocal bufhidden=delete