gvim: avoid cursor blinking if window inactive


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers gvim: avoid cursor blinking if window inactive
# 1  
Old 01-16-2009
gvim: avoid cursor blinking if window inactive

Hi,
I'm a newbie here and don't know if this is the right forum for my question, but I searched for a forum for gvim and can't find one.

My gvim shows always a blinking cursor, also if it is not the active xwindow. So I write very often in other xwindows, when editing with gvim. Is there a possibility to have only a blinking cursor if the gvim xwindow is active or perhaps to change the color scheme.

/jeckle
# 2  
Old 01-30-2009
Run vim and try

:help blinking

which is part of the "guicursor" setting. (:help gcr)

You can also do

:help colorscheme
# 3  
Old 02-02-2009
Hi otheus,
The themes you gave works always, but not dependent if the window ist active or not. When the window is not active the curser is to be not blinking.
/jeckle
# 4  
Old 02-02-2009
I'd suggesting contacting the vim/gvim mailing lists for adding this as a feature to this function (gcr). Alternatively, if you know C, you can produce a patch yourself and submit it. Presumably you would register another "mode" with the gcr command, and if this mode is used, catch the window-focus/unfocus event and change the cursor.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Control cursor position also at bottom of window

I have a slight problem controlling the cursor position in a Bash terminal window. I have a function ask a question and then wait for an answer which is either 'y' or 'n' or a carriage return. Whenever the user enters anything else it just erases the answer and waits for the next one. However, the... (23 Replies)
Discussion started by: Ralph
23 Replies

2. UNIX for Beginners Questions & Answers

Useradd not creating users and just got blinking cursor

Suddenly useradd command is not working,no errors displayed and just got blinking cursor after hitting the command but not actually creating users as expected. Tried using the groupadd command but same results. The last thing that I did if I can remember is changing the default run level from 5... (2 Replies)
Discussion started by: norbie.lopez
2 Replies

3. Debian

Debian fresh install blinking cursor meaning?

Hello, I have downloaded and install debian in computer it is blinking cursor what this mean? (6 Replies)
Discussion started by: Riteshkakkar
6 Replies

4. UNIX for Dummies Questions & Answers

Stop blinking text after process is complete

Trying to make some blinking text to designate a process taking place. Trying to figure out how when the process is complete how to end the blinking. I could clear out but then I lose any prior output which I don't want. echo "Archiving Files..." printf "\x1b (10 Replies)
Discussion started by: wyclef
10 Replies

5. Shell Programming and Scripting

avoid error on terminal window!

Hi Guys, I am using simple ls command to find out whether the dir exist there or not. If dir found than remove. But the problem is I don't want the error shown on the terminal window that "dir not found" on the terminal window everytime i execute it. The code I am using is: set x = `/bin/ls... (4 Replies)
Discussion started by: dixits
4 Replies

6. UNIX and Linux Applications

Passing the value of a cursor to another cursor

i have 2 cursors. i want to assign the value of first cursor(employee_id) to the where condition of cursor c2(please refer the bold statement). how do i do if i want to assign the value of c1 to where condition of cursor c2? declare cursor c1 IS select employee_id from employee cursor c2... (1 Reply)
Discussion started by: vkca
1 Replies

7. UNIX for Dummies Questions & Answers

Dell monitor blinking with the Solaris

Hi I have experienced some problems with the new monitor on my Solaris WS (Solaris5.4). Old monitor (Sony ES200) died an we installed a new one (Dell Ultrascan P780) The system booted but the monitor statrted blinking at the rate about once in 5-7 seconds. This is espetially strange that the... (0 Replies)
Discussion started by: Andrey Malishev
0 Replies

8. Solaris

T5240 netmgmt port not blinking

I was trying to configure the netmgmt from the serial and set commitpending to true. However, the netmgmt port is not up and blinking. I tried to connect using my notebook directly to the netmgmt port and am not able to ping as well. Previouly i was doing the firmware upgrade using the webconsole.... (20 Replies)
Discussion started by: incredible
20 Replies

9. UNIX for Dummies Questions & Answers

Blinking cursor

Cursor is blinking (slightly) while loading page in Firefox, or during scrolling a window. I tried some variants of linux (gnome permanently) and of course my solaris. May be an artifact of X-window? Cause in windows cursor is stable (i'm feeling more confident). PS: It makes me nervous. (0 Replies)
Discussion started by: Xcislav
0 Replies

10. Programming

blinking text

hi every one i got a problem in blinking text i tried like this main() { initscr(); move(5,10); addstr("this is blink->"); addch('H' | A_BLINK); refresh(); getch(); endwin(); } an error came like this # cc r3.c r3.c: In function ‘main': r3.c:6: error: ‘A_BLINK' undeclared (first... (5 Replies)
Discussion started by: ramesh.jella
5 Replies
Login or Register to Ask a Question