From 5af1243f165bb0cdb9634cb2d00a0c48fbb0d73c Mon Sep 17 00:00:00 2001 From: We-unite <3205135446@qq.com> Date: Thu, 13 Mar 2025 16:05:55 +0800 Subject: Try to change some cursor set, failed First of all, although it's useful to highlight cursorline and cursor column, it's hard toi decide their background color, to make them red always conflicts with highlight of code, which would hide all the chars. But, emmm....So let's try default color(light gray) now. Besides, color of the char under cursor is always changed, white to be black, etc. It's not because of vim configurations, but the trick of terminal, because in remote ssh it's different. The problem hasn't been found, left to future. --- vimrcs/myset.vim | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/vimrcs/myset.vim b/vimrcs/myset.vim index 4bd8ca3..9424193 100644 --- a/vimrcs/myset.vim +++ b/vimrcs/myset.vim @@ -19,8 +19,8 @@ set list " 显示tab和空格 set listchars=tab:>-,trail:-,extends:> " 设置tab和空格的显示方式 set cul set cuc -autocmd VimEnter * hi CursorLine cterm=NONE ctermbg=red ctermfg=NONE guibg=darkblue guifg=NONE -autocmd VimEnter * hi CursorColumn cterm=NONE ctermbg=red ctermfg=NONE guibg=darkblue guifg=NONE +" autocmd VimEnter * hi CursorLine cterm=NONE ctermbg=red ctermfg=NONE guibg=darkblue guifg=NONE +" autocmd VimEnter * hi CursorColumn cterm=NONE ctermbg=red ctermfg=NONE guibg=darkblue guifg=NONE " Set cursor shape and color if &term =~ "xterm" @@ -37,3 +37,12 @@ endif " 4 -> solid underscore 不闪烁的下划线 " 5 -> blinking vertical bar 闪烁的竖线 " 6 -> solid vertical bar 不闪烁的竖线 + +" Set cursor shape and color +" set termguicolors +" set guicursor=n-v-c:block-Cursor +" set guicursor:i-ci:ver25-CursorInsert +" set guicursor:r-cr-o:hor20-CursorReplace +" highlight Cursor guifg=NONE guibg=NONE ctermfg=NONE ctermbg=green +" highlight CursorInsert guifg=NONE guibg=NONE ctermfg=NONE ctermbg=black +" highlight CursorReplace guifg=NONE guibg=NONE ctermfg=NONE ctermbg=blue -- cgit v1.2.3-70-g09d2