Hi rameo!
On Mo, 08 Mär 2010, rameo wrote:
> let say a file in VIM has the next path:
>
> d:\my_documents\John\bread.eml
>
> I would like to know if:
> 1) the path has the string "John" inside
for the current buffer:
:echo match(fnamemodify(expand("%"), ':p'), 'John')
> 2) the filename has the extension "eml"
:echo match(fnamemodify(expand("%"), ':e'), 'eml')
> Another possibility is to check if current GVIM is opened with the
> option
> "--noplugin"
> I don't know how to check this.
:set lpl?
regards,
Christian
--
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