Skip to content

Commit

Permalink
Add a comment on HighlightedyankRegion setting
Browse files Browse the repository at this point in the history
`:colorscheme` command clears all the existing highlight group.
The definition of  `HighlightedyankRegion` should come after the `:colorscheme` command execution.
  • Loading branch information
machakann committed Sep 26, 2018
1 parent d359d18 commit 06b1782
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ When a new text is yanked or user starts editing, the old highlighting would be
If the highlight is not visible for some reason, you can redefine the `HighlightedyankRegion` highlight group like:

```
hi HighlightedyankRegion cterm=reverse gui=reverse
highlight HighlightedyankRegion cterm=reverse gui=reverse
```

Note that the line should be located after `:colorscheme` command execution in your vimrc.

## Inspired by

- [atom-vim-mode-plus](https://github.com/t9md/atom-vim-mode-plus)
Expand Down
6 changes: 5 additions & 1 deletion doc/highlightedyank.jax
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*highlightedyank.txt* ヤンクした場所をわかりやすくする。
Last change:16-Mar-2018.
Last change:26-Sep-2018.

書いた人 : machakann <mckn{at}outlook.jp>
ライセンス : NYSL ライセンス
Expand Down Expand Up @@ -82,6 +82,10 @@ HighlightedyankRegion *hl-HighlightedyankRegion*
highlight HighlightedyankRegion ctermbg=237 guibg=#404040
<
より詳しくは |:highlight| を参照してください。

ただし、再定義は vimrc の中の |:colorscheme| 以降で行われる必要があり
ます。

==============================================================================
COMMANDS *highlightedyank-commands*

Expand Down
6 changes: 5 additions & 1 deletion doc/highlightedyank.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*highlightedyank.txt* Make the yanked region apparent!
Last change:16-Mar-2018.
Last change:26-Sep-2018.

Author : machakann <mckn{at}outlook.jp>
License : NYSL license
Expand Down Expand Up @@ -82,6 +82,10 @@ highlight group.
highlight HighlightedyankRegion ctermbg=237 guibg=#404040
<
See |:highlight| help for more details.

NOTE that the line should be located after |:colorscheme| command
execution in your vimrc.

==============================================================================
COMMANDS *highlightedyank-commands*

Expand Down

0 comments on commit 06b1782

Please sign in to comment.