CHEN Cheng wrote:
> On Tue, Aug 25, 2009 at 10:47:15PM -0400, Steve Bertrand wrote:
>> CHEN Cheng wrote:
>>> On Tue, Aug 25, 2009 at 09:15:20PM -0400, Steve Bertrand wrote:

>>>> Essentially, if I'm developing a Perl module, I'd like to assign a
>>>> keystroke that will allow me to do a series of tasks,

>>> It seems okay by defining a function in .vimrc:
>>>
>>> function PerlBuild()
>>>     w
>>>     ! echo hello
>>>     ! sudo echo hello
>>> endfun
>>>
>>> map ,pb :call PerlBuild()<CR>

>> I'm dizzy from how fast I can do things. If anything, Vim has been a
>> detriment to my mental stability...
>>
>> ...for once, my brain doesn't have an excuse for having to move it's
>> fingers from their natural position on the keyboard, thus it receives no
>> break ;)
>>

> I'm soo happy to see this. I wasn't conscious to build process improvement
> before your requirement inspired me to do that.

I must say, it is extremely handy, and very easy!

" do an uninst/reinst of Perl module

function PerlBuild()
    w
    ! sudo rmpkg
    ! make realclean
    ! perl Makefile.PL
    ! sudo make install
endfunction

map ,mi :call PerlBuild()<CR>


" commit to the repo

function SvnCommit()
    w
    ! svn commit
endfunction

map ,ci :call SvnCommit()<CR>

Thanks again for your help.

Steve

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to