You are not logged in.
how to reproduce:
sudo visudo
or
su -c visudo
Press Control C
result:
:
At EOF
:
At EOF
:
At EOF
:
At EOF
:
At EOF
:
At EOF
:
At EOF
:
each extra ^C makes it pause/unpause printing
The memory usage of the vi process doesn't change.
Command line is /usr/bin/vi -- /etc/sudoers.tmp running as user root
stat returns this:
stat: cannot stat ‘/etc/sudoers.tmp’: No such file or directory
I have no idea what to do.
don't suggest nano, I want vi to work. it's a clean install.
Linux bz 4.1.4-1-ARCH #1 SMP PREEMPT Mon Aug 3 21:30:37 UTC 2015 x86_64 GNU/Linux
EDIT
btw, I read this. Same issue, ages ago. no real solution.
https://bbs.archlinux.org/viewtopic.php?id=108010
Last edited by FastCode (2015-08-17 12:43:09)
Offline
https://bbs.archlinux.org/viewtopic.php?id=108010
What do you want ^C to do?
When posting configs, code or command output, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode
like this
It makes the code more readable and - in case of longer listings - more convenient to scroll through.
Last edited by karol (2015-08-17 12:35:05)
Offline
Control C :wq
is there another way I'm not aware of?
Offline
No idea what you mean. You can quit with ':wq'. What do you need ^C for?
Offline
You can't just write :wq while you're in insert mode.
let me put it this way.
vi works, visudo doesn't
Offline
What happens if your press Esc instead of ^C?
Edit: I too get screenfulls of the staircase EOF when presing ^C, but Esc works fine.
Last edited by karol (2015-08-17 12:58:48)
Offline
it works, ty.
I've used vi for almost a decade and didn't know that.
Offline
Hitting ^C every time I want to exit insert mode seems almost painful. I'm glad this ordeal is over for you :-)
Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
Offline