vim helps me in commit p5- ports
As tobez(1) said, we committers should provide Changes in commit log, so…..
I’ve add these two lines into my .vimrc:
map <buffer> ,w /p5-([^/]+)/<CR> "vyaW
nmap <F12> ,w /^Changes:<CR> Ahttp://search.cpan.org/dist/<C-R>v<ESC> :1<CR> :/dist/[^/]+/p5<CR> :. s,dist/[^/]+/p5-,dist/,<CR> :. s,Makefile,Changes,<CR>
nmap <F12> ,w /^Changes:<CR> Ahttp://search.cpan.org/dist/<C-R>v<ESC> :1<CR> :/dist/[^/]+/p5<CR> :. s,dist/[^/]+/p5-,dist/,<CR> :. s,Makefile,Changes,<CR>
Then everytime I hit F12, it will help me add the following lines:
Changes: http://search.cpan.org/dist/XXX-YYY/Changes
However, some perl modules provide ChangeLog instead of Changes, so need to pay attention to it.
- Anton Berezin[back]














