Thank you very much :) I noted that '@%' does an insert of the whole path. Do you know what do I have to use to insert only the filename?
Rameo On Oct 16, 12:31 pm, Michael Henry <[email protected]> wrote: > 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
