On 28/12/08 13:21, Dave Wood wrote:
> I have been using an escape code in my ~/.bashrc to make the cursor into a
> block, which is much easier to see when searching through man pages etc.
>
> Only problem is that vim changes it back to the default underline cursor. I
> can't find the correct command to change the shape of the cursor in vim.
> I've seen some remarks about 'guicursor' and 'termcap-cursor-shape' but
> there doesn't seem to be a plain 'cursor' attribute that I can find and
> trying to set 'termcap-cursor-shape' gives me an unknown variable error.
>
> Any ideas?
>

|termcap-cursor-shape| is not an option or a variable, it's a help tag. 
If you had followed it (using ":help termcap-cursor-shape" without the 
quotes), you would have seen that in Console Vim (other than Windows 
console), instead of a cursor option there are two termcap codes, t_SI 
(for Start Insert) to set the Insert-mode cursor, and t_EI (for End 
Insert) to set the Normal-mode cursor.

If you didn't define these codes yourself (they aren't defined in 
"standard" termcaps), then maybe your *x distribution dropped a system 
vimrc on you. Check the ":version" output to see where it might be located.

In the Windows version of Console Vim, the 'guicursor' option (which, 
again, you should have checked) can be used to set the height (but not 
the width) of the cursor separately for all the same cases as in the GUI.

Best regards,
Tony.
-- 
"Dying is a very dull, dreary affair.  And my advice to you is to have
nothing whatever to do with it."
                -- W. Somerset Maugham

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to