On 05/06/09 12:42, Andy Wokula wrote:
>
> Jeri Raye schrieb:
>> Hi
>>
>> How can you echo / "make visible" what for file-type is detected in VIM
>> Is there something like:
>> :echo filetype
>>
>> Rgds,
>> Jeri
>
> :set ft
>

In general, to display the value of some option, let's say of 'option', 
use one of

        :set option?
        :setlocal option?
        :setglobal option?

(in general the first of them). The question mark is optional for String 
or Integer options like 'filetype' here, but in the case of a Boolean 
option, using ":set option" with no question mark will set it to TRUE 
rather than display the existing value, so IMHO it is good practice to 
always use a question mark when querying the current value.


Best regards,
Tony.
-- 
Acquaintance, n.:
        A person whom we know well enough to borrow from, but not well
enough to lend to.
                -- Ambrose Bierce, "The Devil's Dictionary"

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to