• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版24755eff71915e0c3f64795556b7bed6d3a5b654 (tree)
时间2023-05-04 20:23:01
作者badcoff33 <none@none>
Commiterbadcoff33

Log Message

set option wincolor

更改概述

差异

--- a/after/ftplugin/help.vim
+++ b/after/ftplugin/help.vim
@@ -3,6 +3,7 @@
33 " Description: Add-on some features for Help files.
44
55 setlocal nonumber norelativenumber
6+setlocal wincolor=CursorLine
67
78 " Jump to links with enter
89 nmap <silent> <buffer> <CR> <C-]>
--- a/after/ftplugin/qf.vim
+++ b/after/ftplugin/qf.vim
@@ -4,6 +4,7 @@ setlocal nowrap
44 setlocal nonumber
55 setlocal norelativenumber
66 setlocal scrolloff=0
7+setlocal wincolor=CursorLine
78
89 "prepare cleanup
910 setlocal modifiable
@@ -21,6 +22,4 @@ call histdel("search", -1)
2122 let b:undo_ftplugin = "setlocal number< relativenumber< wrap< scrolloff<"
2223
2324 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+
--- a/autoload/visuals.vim
+++ b/autoload/visuals.vim
@@ -68,14 +68,6 @@ function! visuals#info_hl()
6868 echo "background:" synIDattr(synidtrans, "bg")
6969 endfunction
7070
71-function visuals#blend_down()
72- if ((&previewwindow) || (&bt=='help'))
73- set wincolor=CursorLine
74- else
75- set wincolor=
76- endif
77-endfunction
78-
7971 function! visuals#blink_on_yank_now(dict)
8072 let duration = (type(a:dict) == v:t_dict) && (has_key(a:dict, "duration")) ? a:dict["duration"] : 1000
8173 let a = getpos("'[")
--- a/plugin/visuals.vim
+++ b/plugin/visuals.vim
@@ -9,6 +9,5 @@ nnoremap <Leader>h <cmd>HlWordToggle<CR>
99
1010 augroup visuals
1111 au!
12- autocmd WinNew,WinEnter,BufWinEnter * call visuals#blend_down()
1312 autocmd TextYankPost * call visuals#blink_on_yank_now(#{duration: 300})
1413 augroup END