mirror of
https://github.com/osyo-manga/vim-brightest.git
synced 2025-11-09 20:13:53 -05:00
Improve doc.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
brightest.txt カーソル下の単語を常にハイライトするプラグイン
|
*brightest.txt* カーソル下の単語を常にハイライトするプラグイン
|
||||||
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
@@ -75,11 +75,9 @@ Default: >
|
|||||||
\}
|
\}
|
||||||
<
|
<
|
||||||
Example: >
|
Example: >
|
||||||
" 単語をアンダーラインでハイライトして、
|
" 単語をアンダーラインでハイライトする
|
||||||
" matchadd() の優先順位を 1000 にする
|
|
||||||
let g:brightest#highlight = {
|
let g:brightest#highlight = {
|
||||||
\ "group" : "BrightestUnderline",
|
\ "group" : "BrightestUnderline",
|
||||||
\ "priority" : 1000
|
|
||||||
\}
|
\}
|
||||||
<
|
<
|
||||||
|
|
||||||
@@ -149,6 +147,46 @@ Example: >
|
|||||||
\ "priority" : 1000
|
\ "priority" : 1000
|
||||||
\}
|
\}
|
||||||
<
|
<
|
||||||
|
==============================================================================
|
||||||
|
FAQ *brightest-faq*
|
||||||
|
|
||||||
|
Q. ハイライトを変更したい
|
||||||
|
|
||||||
|
A. |g:brightest#highlight| の "group" に変更したいハイライトグループ名を設定
|
||||||
|
します。
|
||||||
|
|
||||||
|
>
|
||||||
|
" ハイライトを "Search" にする
|
||||||
|
let g:brightest#highlight = {
|
||||||
|
\ "group" : "Search",
|
||||||
|
\}
|
||||||
|
<
|
||||||
|
|
||||||
|
Q. アンダーライン、もしくは波線でハイライトしたい
|
||||||
|
|
||||||
|
A. |g:brightest#highlight| の "group" に |BrightestUnderline|、もしくは
|
||||||
|
|BrightestUndercurl|を設定します。
|
||||||
|
|
||||||
|
>
|
||||||
|
" ハイライトをアンダーラインにする
|
||||||
|
let g:brightest#highlight = {
|
||||||
|
\ "group" : "BrightestUnderline",
|
||||||
|
\}
|
||||||
|
<
|
||||||
|
|
||||||
|
Q. ハイライトの背景を 'cursorline' と同じに死体
|
||||||
|
|
||||||
|
A. g:brightest#highlight_in_cursorline| の "group" に
|
||||||
|
|BrightestCursorLineBg| を設定することでカーソル行のハイライトの背景が
|
||||||
|
'cursorline' と同じになります。
|
||||||
|
>
|
||||||
|
" カーソル行のハイライトの背景を 'cursorline' と同じにする
|
||||||
|
let g:brightest#highlight_in_cursorline = {
|
||||||
|
\ "group" : "BrightestCursorLineBg",
|
||||||
|
\}
|
||||||
|
<
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user