Friday, November 8, 2013

Re: Strange/useless/misleading "error" with "gf"

On Fri, Nov 08, 2013 at 01:40:59PM -0600, Tim Chase wrote:
> To replicate:

> 1) start a clean Vim:

> vim -u NONE

> 2) read in a directory listing with the side-effect of marking the
> current buffer as modified
> :r! ls " *nix
> :r! dir /b " Win32

is setting 'bufhidden' to hide not an option here?

> 3) position the cursor over a filename that can be identified by
> 'isfname'

> 4) type "gf" to go to that file

> 5) As expected, Vim gives an E37 error that the file has been modified
> (because it was in step 2). However, the message here suggests that I
> might want to "add ! to override". I'm not sure how one adds an "!"
> to the "gf" command. :-)

> (yes, I know I could use ":e!" and pull down the filename)

--
_|_ _ __|_|_ ._ o|
|_(_)(_)|_| ||_)||<
|

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: