On Jun 4, 2011, at 9:42 AM, Dan Michael wrote:

> fredag 3. juni 2011 kl. 15:37:57 UTC+2 skrev Eric Weir følgende:
> 
> On Jun 2, 2011, at 10:55 AM, Eric Weir wrote:
> 
>> After inserting these lines when starting Vim or creating a new tab I get 
>> this error message:
>> 
>> Error detected while processing BufWinEnter Auto commands for "*":
>> E32: No file name   
> 
> 
> This is because vim naively tries to load the view for an empty buffer, but 
> of course no saved view exists for the empty buffer. The same happens when 
> you open a help page. There is no saved view for the help pages, so you will 
> get an error. One simple solution is to use "silent!" instead of "silent". 
> This will silence any error message. My preferred solution is to instead to 
> save views only for files of certain extensions (since mkview saves a lot of 
> things, not just folds, and sometimes you just don't want it all saved). So, 
> for instance,
> 
> autocmd BufWinLeave *.txt mkview
> autocmd BufWinEnter *.txt silent loadview

Thanks, Dan. I gave this one a try. Now I don't get either of the error 
messages.

> Good luck further! But please try to avoid quadruple-posting next time.

Does this refer to multiple copies of the same post or multiple responses to a 
response before receiving a response?

If the former, it shouldn't happen anymore. For a while Apple Mail was hanging 
up on send, and several times that resulted in multiple copies getting sent 
when the message was finally sent.

If the second, I didn't realize that that was discouraged.

------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA  USA
[email protected]




-- 
You received this message from the "vim_mac" 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