修订版 | 24755eff71915e0c3f64795556b7bed6d3a5b654 (tree) |
---|---|
时间 | 2023-05-04 20:23:01 |
作者 | badcoff33 <none@none> |
Commiter | badcoff33 |
set option wincolor
@@ -3,6 +3,7 @@ | ||
3 | 3 | " Description: Add-on some features for Help files. |
4 | 4 | |
5 | 5 | setlocal nonumber norelativenumber |
6 | +setlocal wincolor=CursorLine | |
6 | 7 | |
7 | 8 | " Jump to links with enter |
8 | 9 | nmap <silent> <buffer> <CR> <C-]> |
@@ -4,6 +4,7 @@ setlocal nowrap | ||
4 | 4 | setlocal nonumber |
5 | 5 | setlocal norelativenumber |
6 | 6 | setlocal scrolloff=0 |
7 | +setlocal wincolor=CursorLine | |
7 | 8 | |
8 | 9 | "prepare cleanup |
9 | 10 | setlocal modifiable |
@@ -21,6 +22,4 @@ call histdel("search", -1) | ||
21 | 22 | let b:undo_ftplugin = "setlocal number< relativenumber< wrap< scrolloff<" |
22 | 23 | |
23 | 24 | nnoremap <buffer> <Esc> :cclose<CR> |
24 | -nnoremap <buffer> . <cmd>cnext<CR><C-w>p | |
25 | -nnoremap <buffer> , <cmd>cprev<CR><C-w>p | |
26 | -nnoremap <buffer> <CR> <CR><C-w>p | |
25 | + |
@@ -68,14 +68,6 @@ function! visuals#info_hl() | ||
68 | 68 | echo "background:" synIDattr(synidtrans, "bg") |
69 | 69 | endfunction |
70 | 70 | |
71 | -function visuals#blend_down() | |
72 | - if ((&previewwindow) || (&bt=='help')) | |
73 | - set wincolor=CursorLine | |
74 | - else | |
75 | - set wincolor= | |
76 | - endif | |
77 | -endfunction | |
78 | - | |
79 | 71 | function! visuals#blink_on_yank_now(dict) |
80 | 72 | let duration = (type(a:dict) == v:t_dict) && (has_key(a:dict, "duration")) ? a:dict["duration"] : 1000 |
81 | 73 | let a = getpos("'[") |
@@ -9,6 +9,5 @@ nnoremap <Leader>h <cmd>HlWordToggle<CR> | ||
9 | 9 | |
10 | 10 | augroup visuals |
11 | 11 | au! |
12 | - autocmd WinNew,WinEnter,BufWinEnter * call visuals#blend_down() | |
13 | 12 | autocmd TextYankPost * call visuals#blink_on_yank_now(#{duration: 300}) |
14 | 13 | augroup END |