cursor in vim / urxvt
I'm playing with my .vimrc
I'd like to change the shape of the cursor in vim (urxvt). I've found the following: Code:
if &term =~ "xterm\\|rxvt" Code:
if &term =~ '^xterm' Code:
if &term =~ "xterm\\|rxvt" That's my .Xresources Code:
XTerm*faceName: Inconsolata Thank you. |
Replying because nobody else has ...
Perhaps the &t_* settings do not work with urxvt. Perhaps &term is none of the values tried so far. The &t_* settings could be tested with urxvt by removing the conditional test -- either by removing the if and endif lines or by adding an else. Alternatively it should (TM) be possible to make vim display the value of &term. Could it be the value set by URxvt*termName: rxvt-unicode-256color ? All of this would be trivial to investigate with a knowledge of the scripting language vim uses in .vimrc but my attempts to find a reference for it have found only bewilderingly complex examples of using it and nothing about the language itself. |
Thanks. I'm at work now but I'll check it in the evening. Why didn't I think about it before? It makes sense:
1. It doesn't have to be a conditional statement. 2. I didn't see the correlation between the name set in .Xresources and the script. I'll check it later. |
It seems urxvt does not support vim's &t_* settings. I changed the name to the one mentioned in .Xresources with no luck. Then I removed the conditional bits and it works with xterm and sakura but still has no effect on urxvt. Interestingly enough it works in rxvt. How different are rxvt and rxvt-unicode?
|
AFAIK urxvt is very similar to rxvt apart from the Unicode extensions.
The best place to ask the current question might be the urxvt mailing list. Subscription is via http://lists.schmorp.de/mailman/listinfo/rxvt-unicode. In case it has been answered before it would be worth searching the mailing list archive at http://lists.schmorp.de/pipermail/rxvt-unicode/ |
Quote:
Thanks catkin. I've already tried to subscribe to their mailing list twice. I have been waiting for any kind of confirmation for 2 days. A couple of hours ago I /joined their irc channel. I'm still the only person there. Having said that, I've found a solution. Since rxvt and urxvt differ only in the unicode bit, it must have been something in my config that stopped urxvt from executing the script. I've done what I should've done in the first place, ie. comment out the urxvt entries in .Xresources. As one can guess, the culprit was: Code:
URxvt*cursorUnderline: true sycamorex |
Glad you found the solution :)
Quote:
|
Thanks catkin. The confirmation was delayed by afair 3 days. In the end I received 2 confirmation emails.
|
All times are GMT -5. The time now is 02:43 AM. |