Tuesday, July 20, 2010

getting the name of a selected file into a variable

Hi,

I want to do two things

* Firstly, improve my Vim skills

* Secondly, improve the NotMuch plugin

For those not familiar with the NotMuch pluggin, it comprises some
vim scripts on top of a tool called notmuch.

Basically it turns vim into an email client with super fast message
searching.

But it's been released in an unfinished state.

It currently lacks a couple of features, the most glaring of which is
the inability to send file attachments.

My strategy is to create the following.

1) Have it browse for a file (:browse)

2) Get the path of the selected file

3) Run base64 upon the file

4) Take the output and do the mime stuff to the email message

5) Fold it in so that all that base64 encoded text is hidden

But the documentation doesn't say anything about variable assignment, is
this possible to do and does this sound like the right way to go?

Thank You

Bryan Hunt
--
--

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: