vim error 'E45: 'readonly' option is set' on a file with write permission Debian 9 vim 8.0.707
up vote
-1
down vote
favorite
I wonder why I have the error in title while the edited file have write bit enabled and the good user :
# ls -l /etc/hosts
-rw-r--r-- 1 root root 693 Nov 15 09:46 /etc/hosts
# whoami
root
Any idea ? A setting ? A bug ?
Tried set readonly=noro, but I get
E474: Invalid argument: readonly=noro
from vim vimrc
Tried :
set noro:verb set readonly?
and
set noreadonly
without any change, nor error
vim vimrc
add a comment |
up vote
-1
down vote
favorite
I wonder why I have the error in title while the edited file have write bit enabled and the good user :
# ls -l /etc/hosts
-rw-r--r-- 1 root root 693 Nov 15 09:46 /etc/hosts
# whoami
root
Any idea ? A setting ? A bug ?
Tried set readonly=noro, but I get
E474: Invalid argument: readonly=noro
from vim vimrc
Tried :
set noro:verb set readonly?
and
set noreadonly
without any change, nor error
vim vimrc
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I wonder why I have the error in title while the edited file have write bit enabled and the good user :
# ls -l /etc/hosts
-rw-r--r-- 1 root root 693 Nov 15 09:46 /etc/hosts
# whoami
root
Any idea ? A setting ? A bug ?
Tried set readonly=noro, but I get
E474: Invalid argument: readonly=noro
from vim vimrc
Tried :
set noro:verb set readonly?
and
set noreadonly
without any change, nor error
vim vimrc
I wonder why I have the error in title while the edited file have write bit enabled and the good user :
# ls -l /etc/hosts
-rw-r--r-- 1 root root 693 Nov 15 09:46 /etc/hosts
# whoami
root
Any idea ? A setting ? A bug ?
Tried set readonly=noro, but I get
E474: Invalid argument: readonly=noro
from vim vimrc
Tried :
set noro:verb set readonly?
and
set noreadonly
without any change, nor error
vim vimrc
vim vimrc
edited Nov 15 at 22:58
asked Nov 15 at 10:36
Mévatlavé Kraspek
1014
1014
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
A straightforward explanation would be that 'readonly' was explicitly set, either via :set readonly or by opening the file with :view /etc/hosts. You should then be able to avoid the E45 with :write!.
Triedset readonly=noro, bu I get E474: Invalid argument: readonly= in vimrc
– Mévatlavé Kraspek
Nov 15 at 11:44
1
That would be:set noreadonly. The fact that you've attempted to put this into your .vimrc hints that you have not much of a clue what you're doing... this doesn't bode well for productive troubleshooting.
– Ingo Karkat
Nov 15 at 11:47
I don't try to type this each time in command mode, but modify my vimrc
– Mévatlavé Kraspek
Nov 15 at 11:50
And withset noreadonlyin vimrc, still the problem
– Mévatlavé Kraspek
Nov 15 at 11:52
Can you force-write (with:w!)? If not, this really is a filesystem permission problem, not a Vim setting.
– Ingo Karkat
Nov 15 at 11:53
|
show 2 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
A straightforward explanation would be that 'readonly' was explicitly set, either via :set readonly or by opening the file with :view /etc/hosts. You should then be able to avoid the E45 with :write!.
Triedset readonly=noro, bu I get E474: Invalid argument: readonly= in vimrc
– Mévatlavé Kraspek
Nov 15 at 11:44
1
That would be:set noreadonly. The fact that you've attempted to put this into your .vimrc hints that you have not much of a clue what you're doing... this doesn't bode well for productive troubleshooting.
– Ingo Karkat
Nov 15 at 11:47
I don't try to type this each time in command mode, but modify my vimrc
– Mévatlavé Kraspek
Nov 15 at 11:50
And withset noreadonlyin vimrc, still the problem
– Mévatlavé Kraspek
Nov 15 at 11:52
Can you force-write (with:w!)? If not, this really is a filesystem permission problem, not a Vim setting.
– Ingo Karkat
Nov 15 at 11:53
|
show 2 more comments
up vote
0
down vote
A straightforward explanation would be that 'readonly' was explicitly set, either via :set readonly or by opening the file with :view /etc/hosts. You should then be able to avoid the E45 with :write!.
Triedset readonly=noro, bu I get E474: Invalid argument: readonly= in vimrc
– Mévatlavé Kraspek
Nov 15 at 11:44
1
That would be:set noreadonly. The fact that you've attempted to put this into your .vimrc hints that you have not much of a clue what you're doing... this doesn't bode well for productive troubleshooting.
– Ingo Karkat
Nov 15 at 11:47
I don't try to type this each time in command mode, but modify my vimrc
– Mévatlavé Kraspek
Nov 15 at 11:50
And withset noreadonlyin vimrc, still the problem
– Mévatlavé Kraspek
Nov 15 at 11:52
Can you force-write (with:w!)? If not, this really is a filesystem permission problem, not a Vim setting.
– Ingo Karkat
Nov 15 at 11:53
|
show 2 more comments
up vote
0
down vote
up vote
0
down vote
A straightforward explanation would be that 'readonly' was explicitly set, either via :set readonly or by opening the file with :view /etc/hosts. You should then be able to avoid the E45 with :write!.
A straightforward explanation would be that 'readonly' was explicitly set, either via :set readonly or by opening the file with :view /etc/hosts. You should then be able to avoid the E45 with :write!.
answered Nov 15 at 11:35
Ingo Karkat
17.2k22142
17.2k22142
Triedset readonly=noro, bu I get E474: Invalid argument: readonly= in vimrc
– Mévatlavé Kraspek
Nov 15 at 11:44
1
That would be:set noreadonly. The fact that you've attempted to put this into your .vimrc hints that you have not much of a clue what you're doing... this doesn't bode well for productive troubleshooting.
– Ingo Karkat
Nov 15 at 11:47
I don't try to type this each time in command mode, but modify my vimrc
– Mévatlavé Kraspek
Nov 15 at 11:50
And withset noreadonlyin vimrc, still the problem
– Mévatlavé Kraspek
Nov 15 at 11:52
Can you force-write (with:w!)? If not, this really is a filesystem permission problem, not a Vim setting.
– Ingo Karkat
Nov 15 at 11:53
|
show 2 more comments
Triedset readonly=noro, bu I get E474: Invalid argument: readonly= in vimrc
– Mévatlavé Kraspek
Nov 15 at 11:44
1
That would be:set noreadonly. The fact that you've attempted to put this into your .vimrc hints that you have not much of a clue what you're doing... this doesn't bode well for productive troubleshooting.
– Ingo Karkat
Nov 15 at 11:47
I don't try to type this each time in command mode, but modify my vimrc
– Mévatlavé Kraspek
Nov 15 at 11:50
And withset noreadonlyin vimrc, still the problem
– Mévatlavé Kraspek
Nov 15 at 11:52
Can you force-write (with:w!)? If not, this really is a filesystem permission problem, not a Vim setting.
– Ingo Karkat
Nov 15 at 11:53
Tried
set readonly=noro, bu I get E474: Invalid argument: readonly= in vimrc– Mévatlavé Kraspek
Nov 15 at 11:44
Tried
set readonly=noro, bu I get E474: Invalid argument: readonly= in vimrc– Mévatlavé Kraspek
Nov 15 at 11:44
1
1
That would be
:set noreadonly. The fact that you've attempted to put this into your .vimrc hints that you have not much of a clue what you're doing... this doesn't bode well for productive troubleshooting.– Ingo Karkat
Nov 15 at 11:47
That would be
:set noreadonly. The fact that you've attempted to put this into your .vimrc hints that you have not much of a clue what you're doing... this doesn't bode well for productive troubleshooting.– Ingo Karkat
Nov 15 at 11:47
I don't try to type this each time in command mode, but modify my vimrc
– Mévatlavé Kraspek
Nov 15 at 11:50
I don't try to type this each time in command mode, but modify my vimrc
– Mévatlavé Kraspek
Nov 15 at 11:50
And with
set noreadonly in vimrc, still the problem– Mévatlavé Kraspek
Nov 15 at 11:52
And with
set noreadonly in vimrc, still the problem– Mévatlavé Kraspek
Nov 15 at 11:52
Can you force-write (with
:w!)? If not, this really is a filesystem permission problem, not a Vim setting.– Ingo Karkat
Nov 15 at 11:53
Can you force-write (with
:w!)? If not, this really is a filesystem permission problem, not a Vim setting.– Ingo Karkat
Nov 15 at 11:53
|
show 2 more comments
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1375624%2fvim-error-e45-readonly-option-is-set-on-a-file-with-write-permission-debian%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown