Chris wrote: > Vi in the console/terminal does not seem to be able to be able to change the > cursor appearance. > Tried: > t_SI/t_EI with \033 > - seems to be only for X terms > match Cursor /\%#/ > - does not refresh or work well with tabs > > The cursorline and cursorcolumn will highlight the line and column and work > well. Using the same method, this can be done but only highlight the > position the cursor is on. > New commands: > hi CursorPosition ctermbg=red > set CursorPosition
Some terminals can change the color of the cursor. I have this in my ~/.vimrc to change the color of the cursor in terminal depending on Vim's mode: " Change color of cursor in terminal: " - red in normal mode. " - orange in insert mode. " Tip found there: " http://forums.macosxhints.com/archive/index.php/t-49708.html " It works at least with: xterm gnome-terminal terminator " xfce4-terminal rxvt eterm " But does nothing with: konsole if version >= 700 if &term =~ "xterm\\|rxvt" let &t_SI = "\033]12;orange\007" let &t_EI = "\033]12;red\007" au! VimLeave * :sil !echo -ne "\033]12;red\007" endif endif -- You received this message from the "vim_dev" 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
