[英]how i can change cursor color in color scheme “ vim ”
hi all i use this color scheme大家好,我使用这个配色方案
Cobalt Colour scheme: Vim version of TextMates Cobalt colour scheme Cobalt配色方案:Vim版TextMates Cobalt配色方案
I can not see the cursor in insert mode我在插入模式下看不到 cursor
how i can change this color我怎样才能改变这种颜色
EDIT:编辑:
I think this is cursor part我认为这是 cursor 部分
hi CursorLine guifg=none guibg=#002943
hi Cursor guifg=#F8F8F8 guibg=#A7A7A7
hi CursorIM guifg=#F8F8F8 guibg=#002947"#5F5A60
thanks谢谢
@GWW is right. @GWW 是对的。 But the example above only works for gvim, not vim.
但上面的例子只适用于 gvim,不适用于 vim。 You'd better configure in
.vimrc
as in the same documentation to make it work in xterm, for example:您最好在
.vimrc
中进行配置,就像在同一文档中一样,以使其在 xterm 中工作,例如:
if &term =~ "xterm\\|rxvt"
" use an orange cursor in insert mode
let &t_SI = "\<Esc>]12;orange\x7"
" use a red cursor otherwise
let &t_EI = "\<Esc>]12;red\x7"
silent !echo -ne "\033]12;red\007"
" reset cursor when vim exits
autocmd VimLeave * silent !echo -ne "\033]112\007"
" use \003]12;gray\007 for gnome-terminal
endif
There is quite a lot of information about how to set the insert mode cursor color in the vim documentation vim文档中有相当多关于如何设置插入模式cursor颜色的信息
Here is an example from the linked documentation:以下是链接文档中的示例:
highlight Cursor guifg=white guibg=black
highlight iCursor guifg=white guibg=steelblue
set guicursor=n-v-c:block-Cursor
set guicursor+=i:ver100-iCursor
set guicursor+=n-v-c:blinkon0
set guicursor+=i:blinkwait10
EDIT:编辑:
The i
means insert mode, v
visual, c
command, and n
normal i
表示插入模式, v
表示视觉, c
命令, n
正常
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.