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

Closed
blueyed opened this Issue Dec 6, 2011 · 5 comments

Comments

Projects
None yet
2 participants
@blueyed
Contributor

blueyed commented Dec 6, 2011

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.

blueyed added a commit to blueyed/SudoEdit.vim that referenced this issue Dec 6, 2011

@chrisbra

This comment has been minimized.

Show comment
Hide comment
@chrisbra

chrisbra Dec 6, 2011

Owner

Thanks! I'll look into it.

Owner

chrisbra commented Dec 6, 2011

Thanks! I'll look into it.

@chrisbra

This comment has been minimized.

Show comment
Hide comment
@chrisbra

chrisbra Dec 6, 2011

Owner

commit 15d93a9 should have fixed it

Owner

chrisbra commented Dec 6, 2011

commit 15d93a9 should have fixed it

@blueyed

This comment has been minimized.

Show comment
Hide comment
@blueyed

blueyed Dec 8, 2011

Contributor

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

Just try it:

  1. vi<enter>
  2. ifoo<esc>
  3. :SudoWrite<enter>
Contributor

blueyed commented Dec 8, 2011

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

Just try it:

  1. vi<enter>
  2. ifoo<esc>
  3. :SudoWrite<enter>
@chrisbra

This comment has been minimized.

Show comment
Hide comment
@chrisbra

chrisbra Dec 8, 2011

Owner

Should work now with commit 90e1efe

Owner

chrisbra commented Dec 8, 2011

Should work now with commit 90e1efe

@blueyed

This comment has been minimized.

Show comment
Hide comment
@blueyed

blueyed Dec 8, 2011

Contributor

Yes, this looks better.
Thanks!

Contributor

blueyed commented Dec 8, 2011

Yes, this looks better.
Thanks!

@blueyed blueyed closed this Dec 8, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment