On 19/07/09 14:40, Nicolas Aggelidis wrote:
>
>> Could be. What's the answer to
>>
>>         :verbose setglobal bomb?
>>
>> (with the question mark)?
>>
> i have the following in my .vimrc
>
> if has("multi_byte")
>    if&termencoding == ""
>      let&termencoding =&encoding
>    endif
>    set encoding=utf-8 "Sets the character encoding used inside Vim.
>    setglobal fileencoding=utf-8 bomb
>    set fileencodings=ucs-bom,utf-8,latin1,cp1253
> endif
>
> should i change the following line ?
>
> setglobal fileencoding=utf-8 bomb

This defines the defaults for newly created files. You may change it in 
your vimrc, or keep it in your vimrc and change it temporarily when 
unpacking a vimball: here's an example:

        :setglobal nobomb
        :e somefilename.vba
        :so %
        :setglobal bomb

>
>>>
>>>
>>> PS: is there any way to "pipe" the output of a command (i.e vim
>>> netrw.vba) to a buffer? So that i can provide the exact error...
>>
>> You can capture the messages into a file, a register or a variable. If
>> you capture them into @+ (the clipoard) you can then paste that into
>> your mailer.
>>
>> see
>>         :help :redir
>>
>> There is quite a lot of it; the last one (":redir END" to terminate
>> redirection) is important.
>>
>
> great trick! i had no idea :) ... although it would be simpler if i
> could just copy from the command line...

Maybe you can, see
        :help modeless-selection
        :help modeless-and-clipboard

This, however, only works while the message is visible. With 
redirection, you can capture any length of messages.


Best regards,
Tony.
-- 
hundred-and-one symptoms of being an internet addict:
83. Batteries in the TV remote now last for months.

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

Reply via email to