On 10/16/2010 05:20 AM, rameo wrote:
> I created a script to delete the current file
[...]
> I only would like to insert the current filename in the question:
>
> Are you sure to delete this file? -->
> Are you sure to delete "filename.ext"?

You can change your variable assignment to the following:

  let g:delete_dialogue = 'Are you sure to delete "' . @% . '"'

The "." operator concatenates strings.  Look for "string
concatenation" in the help under this topic:

  :help expression-syntax
 
Michael Henry

-- 
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

Reply via email to