forked from inkarkat/vim-mark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Add g:mwExclusionPredicates to be able to suppress mark highligh…
…ting in window(s) Now that the mark highlighting update goes through the single mark#UpdateMark() function, we can add an evaluation of user-configured Predicates (as expressions or Funcrefs). If the current window should be skipped for highlighting (for the plugin, the marks are still "there" and can be added / removed, and jumped to, even though there're invisible), existing match highlighting is removed instead of updated. By default, consider boolean "nomarks" flag variables for various scopes, as these (especially the buffer-local b:nomarks) can be easily set in filetype plugins. To make this work with changing buffers, we have to run an additional unconditional mark update on BufWinEnter. Resolves inkarkat#2.
- Loading branch information
Showing
4 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters