vim helps me in commit p5- ports

2008/01/09
By

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>

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.

  1. Anton Berezin[back]

Tags: , ,

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*


*