Saturday, August 27, 2011

Re: changing vim cursor shape or color in vim 7.0

On 01:57 Fri 26 Aug , sinbad wrote:
> On Aug 18, 11:26 am, sinbad <sinbad.sin...@gmail.com> wrote:
> > On Aug 17, 4:55 pm,sinbad<sinbad.sin...@gmail.com> wrote:
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > hi,
> >
> > > i'm using vim 7.0 inside a gnu screen.
> > > i use vim by puttying to the linux server.
> > > i want to change the cursor shape or color
> > > whenever i want, basically i would like to
> > > set the cursor to a different shape or color
> > > when a variable is set. i tried experimenting
> > > with t_ve option in vim.  currently it is set to
> > > t_ve=^[[34h^[[?25h, i don't know what those
> > > values are, but i tried to change the numbers
> > > with the hope that it might change either
> > > color or shape of the cursor. but no matter
> > > what vlaues i use the cursor just disappears.
> > > i want to know what the values exactly mean
> > > and how do i change them.
> >
> > > thanks
> > >sinbad
> >
> > can anyone please shed some light on this.
> >
> > thanks
>
> can someone please give it a shot. i ran out of ideas !
>
> thanks

These are my mappings to change cursor color (for vim in xterm):
map @1 :!echo -ne "\033]12;midnightblue\007"<CR><CR>
map @2 :!echo -ne "\033]12;grey100\007"<CR><CR>
map @3 :!echo -ne "\033]12;chartreuse1\007"<CR><CR>
map @4 :!echo -ne "\033]12;SlateBlue\007"<CR><CR>
You can check if that works for you.

Best,
Marcin
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: