----- Ursprüngliche Message -----
Von: Volker Bouffier <[email protected]>
An: "[email protected]" <[email protected]>
Cc: 
Gesendet: 14:09 Donnerstag, 20.Oktober 2011 
Betreff: Re: external file manager

For completeness here is the vi script I'm using now:
  fun! RangerMuttAttach()
    silent !ranger --choosefile=/tmp/chosenfile
    if filereadable('/tmp/chosenfile')
      call system('sed "s/\(.*\)/Attach: \1/" /tmp/chosenfile > 
/tmp/muttattach')
      exec 'read /tmp/muttattach'
      call system('rm /tmp/chosenfile /tmp/muttattach')
    endif
    redraw!
  endfun
  map <C-a> magg/Reply-To<CR><ESC>:call RangerMuttAttach()<CR>`a

I changed a few lines.

Thank you
Volker

Reply via email to