You are not logged in.
Pages: 1
Topic closed
Hi ,
whenever I open vi/vim as root in terminal,I get this error:
root@myhost:~# vim
[b]No protocol specified[/b]
what happened?:(
while as local user it is perfectly OK.:|
Offline
Offline
root@myhost:~# type vim
vim is hashed (/usr/bin/vim)
^Output,what that means?
Offline
some help
Offline
I get this error too but only with kate and other gui editors. As far as I can tell, it's a security measure. The xorg server doesn't allow connections which have root privileges which involve programs started from the shell. I don't know why this is affecting vim, but int the meantime, you could use 'kdesu kate [filename]' as a workaround, which is what I used to do when I was too lazy to learn copy/paste in vim
Offline
I've encountered this problem only in KDE so I think it's not anything xorg is doing.
noobus in perpetuus
Offline
^yes.even I am on kdemod :?
Offline
Oooh, I get it now.
This is vim trying to connect to your X clipboard, when running as root. Can you ignore it? I would. Otherwise, you can do the typical "allow root to access the X server" thing, using xhost.
Offline
I've had this issue as well but even opening a konsole window, then su-ing to another users account, *not roots*, I get precisely the same error. It does not matter which user I try to run programs from/to and its driving me batty.
Oddly enough, if I do ctrl-alt-F1, switch to VT1, login then any program I wish to run as another user from within my new shell's KDE session, works fine as expected...however, when I try to switch back to VT7 (the normal vt in use) my session has died & gone to the KDM screen.
Is anyone else having similar behaviour or are these two issues unrelated? If they're not related I'll delete this & start another thread.
Offline
sry if it is offtopic:
does archlinux bundles "sux" ,the "x" wrapper for "su" sessions?sux exports X credential as root.
ontopic:
also,for the error vim throws out,will there be any solution by editing /etc/vimrc ?
I am missing 2 important features of vim in archlinux(I know it is possible!)
1.I cannot press middlebutton(wheel) to paste something from selected text to vim editor.same happens with paste also.
2.I cannot scroll through the file text
these 2 are enabled by default in almost all distros.Debian included.
So,Is there any solution.:) thanks for the support
Offline
sux is in the aur.
1. you cannot paste at all? how about shift - insert (that should paste)?
Offline
^YUP.ofcourse,that works.but in Debian,for eg:a simple middle button press is enough
Offline
Sorry for bringing up this rather old thread, but I just want to add that for me this was resolved by stopping the gpm daemon.
Offline
I found this searching through the forum and just wanted to add that I seem to have the same problem, but only when I have
set title
in my .vimrc
In case that helps anyone
Offline
The "No protocol specified" error is from Vim's failure to connect to the X server. Either unset the DISPLAY environment variable or start Vim with the -X option to prevent it from connecting to the X server. The 'set title' option requires Vim to try to talk to the X server to set the terminal window title.
As for why Vim cannot connect to the X server, in my case it's only when I'm 'su root'; I can probably eliminate that by executing
xhost +local:
on the local X server.
Offline
I'm getting this warning at the moment with vim since I upgraded to KDE SC 4.5. How can I remove this warning permanently? Where can I put
xhost +local:
I don't have a .vimrc in my home folder.
Offline
Given that the last post in this thread to receive an answer was in 2008 you'd be better 0ff starting a new thread.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Closing: follow the new thread https://bbs.archlinux.org/viewtopic.php?id=103808
Offline
Pages: 1
Topic closed