summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWe-unite <3205135446@qq.com>2025-03-13 16:05:55 +0800
committerWe-unite <3205135446@qq.com>2025-03-13 16:05:55 +0800
commit5af1243f165bb0cdb9634cb2d00a0c48fbb0d73c (patch)
tree42a05541609adf6962f6296ac0c0b761c12bdf12
parent71857ffb53921ce6df5704185cb5af4fcff19c91 (diff)
downloadvimrc-5af1243f165bb0cdb9634cb2d00a0c48fbb0d73c.tar.gz
vimrc-5af1243f165bb0cdb9634cb2d00a0c48fbb0d73c.zip
Try to change some cursor set, failedHEADmaster
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.
-rw-r--r--vimrcs/myset.vim13
1 files 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和空格
19set listchars=tab:>-,trail:-,extends:> " 设置tab和空格的显示方式 19set listchars=tab:>-,trail:-,extends:> " 设置tab和空格的显示方式
20set cul 20set cul
21set cuc 21set cuc
22autocmd VimEnter * hi CursorLine cterm=NONE ctermbg=red ctermfg=NONE guibg=darkblue guifg=NONE 22" autocmd VimEnter * hi CursorLine cterm=NONE ctermbg=red ctermfg=NONE guibg=darkblue guifg=NONE
23autocmd VimEnter * hi CursorColumn cterm=NONE ctermbg=red ctermfg=NONE guibg=darkblue guifg=NONE 23" autocmd VimEnter * hi CursorColumn cterm=NONE ctermbg=red ctermfg=NONE guibg=darkblue guifg=NONE
24 24
25" Set cursor shape and color 25" Set cursor shape and color
26if &term =~ "xterm" 26if &term =~ "xterm"
@@ -37,3 +37,12 @@ endif
37" 4 -> solid underscore 不闪烁的下划线 37" 4 -> solid underscore 不闪烁的下划线
38" 5 -> blinking vertical bar 闪烁的竖线 38" 5 -> blinking vertical bar 闪烁的竖线
39" 6 -> solid vertical bar 不闪烁的竖线 39" 6 -> solid vertical bar 不闪烁的竖线
40
41" Set cursor shape and color
42" set termguicolors
43" set guicursor=n-v-c:block-Cursor
44" set guicursor:i-ci:ver25-CursorInsert
45" set guicursor:r-cr-o:hor20-CursorReplace
46" highlight Cursor guifg=NONE guibg=NONE ctermfg=NONE ctermbg=green
47" highlight CursorInsert guifg=NONE guibg=NONE ctermfg=NONE ctermbg=black
48" highlight CursorReplace guifg=NONE guibg=NONE ctermfg=NONE ctermbg=blue