Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

E499: Empty file name for '%' or '#', only works with ":p:h": ^Isil e! % #7

Closed
blueyed opened this Issue December 06, 2011 · 5 comments

2 participants

Daniel Hahler chrisbra
Daniel Hahler

I am getting the following error when trying to :SudoWrite without a filename:

    Cannot write file. Please enter filename for writing!
    Error detected while processing function SudoEdit#SudoDo..SudoEdit#LocalSettings:
    line   13:
    E499: Empty file name for '%' or '#', only works with ":p:h": ^Isil e! %

I will submit a fix shortly.

Daniel Hahler blueyed referenced this issue from a commit in blueyed/SudoEdit.vim December 06, 2011
Daniel Hahler Do not call LocalSettings without having a filename.
Fixes #7.
31f3e50
chrisbra
Owner

Thanks! I'll look into it.

chrisbra
Owner

commit 15d93a9 should have fixed it

Daniel Hahler

No, this happens on line 62 with the sil e! %.

Just try it:
1. vi<enter>
2. ifoo<esc>
3. :SudoWrite<enter>

chrisbra
Owner

Should work now with commit 90e1efe

Daniel Hahler

Yes, this looks better.
Thanks!

Daniel Hahler blueyed closed this December 08, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.