RSS
 

Manual online do PHP no VIM

01 fev

Pegue o código abaixo e coloque dentro de um arquivo com o nome que desejar com a extensão .vim dentro do diretório $HOME/.vim/plugin

function! OpenPhpFunction (keyword)
    let proc_keyword = substitute(a:keyword , '_', '-', 'g')
    exe 'split'
    exe 'enew'
    exe "set buftype=nofile"
    exe 'silent r!lynx -dump -nolist http://www.php.net/manual/pt_BR/print/function.'.proc_keyword.'.php'
    exe 'norm gg'
    exe 'call search ("' . a:keyword .'")'
    exe 'norm dgg'
    exe 'call search("User Contributed Notes")'
    exe 'norm dGgg'
endfunction

Adicione a linha abaixo dentro do seu $HOME/.vimrc

map  <F10>:call OpenPhpFunction('')

Caso você queira apenas a descrição da função, sem os comentários, comente as linhas 10 e 11.

Para usar o manual basta colocar o cursor encima de qualquer função php e apertar a tecla F10 que irá abrir a função em um novo buffer.

Obs.: para a função funcionar, tenha o lynx instalado, se preferir pode adaptar para usar com o links, elinks e etc bastando alterar a linha 5.

 
 

Tags: ,

Leave a Reply

 

 
  1. Eder Lamar

    1 de fevereiro de 2011 at 14:26

    NERD!!!!!!!!! hauiahuhiuahuiha mandou ver mlk…

     
  2. Mario Nunes

    1 de fevereiro de 2011 at 14:27

    Fala renatão massa esta dica vou aplica-la hoje mesmo.

    E vou de adicionar nos links do meu blog.

    Flw

     
 
buy Endep without a prescription online order overnight Amitriptyline Amitriptyline no prior script online pharmacy maxalt order Premarin usa cod where can i order maxalt online buy cheap fedex Premarin purchase Maxalt without a prescription online buy Endep pills in toronto buy Endep toronto order buy Endep online buy generic Endep from india buy next day Endep order Endep uk uk Endep buy Endep uk order Endep online with overnight delivery buy Endep amex online without prescription next day delivery on Aricept saturday order generic Aricept online Activ8 Energy Booster online purchase Nizoral without prescription to ship overnight Nizoral free consultation fedex overnight delivery canadian prescriptions Nizoral buy Nizoral online no prescription uk Activ8 Energy Booster cheap Activ8 Energy Booster generic order Arimidex without prescription to ship overnight order Finpecia online from mexico how to order Finpecia online without prescription where to buy generic Famvir online without a prescription Famvir non perscription buy Premarin tablets without rx Energy Booster online no prescription buy Amitriptyline Online Amitriptyline bestellen generic Requip cost order Requip online next day delivery order Maxalt no rx pay Amitriptyline buy Nizoral american express Valtrex online pharmacy purchase Famvir without rx needed buy Famvir amex online without rx buy cheap Anafranil without prescription cheap Anafranil online free fedex delivery Cytotec buy Amitriptyline australia no prescription buy discount Amitriptyline line arimidex with no prescriptions Lisinopril order uk Lisinopril generic Maxalt buy on line buy Maxalt online cod buy pharmacy Orlistat waterview arimidex without a perscription or membership Aricept without a perscription Aricept canadian pharmacy Aricept shipped cash on buy genuine Aricept xenical perscription from s online buy Amitriptyline online pills buy Amitriptyline without a credit card Nizoral with repronex buy Nizoral cheap where can i purchase Amitriptyline online buy Amitriptyline without rx from us pharmacy buy Amitriptyline money buy fedex Amitriptyline without priscription order Nizoral online Nizoral buy fedex buy 200 mg Nizoral where can i buy Amitriptyline Amitriptyline no prescription Orlistat online order Premarin no doctors prescription achat Aldactone buy Aldactone no prescription low cost buy Premarin discount (uk Activ8 Energy Booster|buy 25 pills Activ8 Energy Booster|no rx Activ8 Energy Booster|uk buy Activ8 Energy Booster|buy discount Activ8 Energy Booster online|ordering Activ8 Energy Booster online|buy Activ8 Energy Booster epharmacist|order Activ8 Energy Booster usa|where to buy Activ8 Energy Booster online|order generic Activ8 Energy Booster online|cheapest place to buy Activ8 Energy Booster|discount Activ8 Energy Booster|buy cheap Activ8 Energy Booster|buy Activ8 Energy Booster c o d|Activ8 Energy Booster online prescription|want to buy Activ8 Energy Booster in malaysia|online pharmacy Activ8 Energy Booster|buy herbal Activ8 Energy Booster|buy cheap Activ8 Energy Booster line|Activ8 Energy Booster cheap|buy Activ8 Energy Booster online|Activ8 Energy Booster tablets|buy Activ8 Energy Booster toronto|where to buy Activ8 Energy Booster online|buy Activ8 Energy Booster where|best buy Activ8 Energy Booster|online pharmacy Activ8 Energy Booster|buy mail order Activ8 Energy Bo buy cheap Maxalt line Maxalt shipped cash on buy Proscar amex online without prescription order prescription free Proscar where to purchase generic Prednisone online without a prescription where to purchase generic Requip online without a prescription buy Requip without rx from us pharmacy online Premarin maxalt without prescription mexico cheap Proscar no rx buy brand Prednisone ordering Activ8 online without a precription Amitriptyline online purchase purchase Activ8 without a prescription overnight shipping Activ8 on line buy Accutane 40 mg in united states online buy Accutane 40 mg with no prescription 40 mg Accutane overnight US delivery 40 mg Accutane no perscription worldwide