Use deferred highlighting for performance
masterDeferred highlighting improves cursor movement performance (e.g., when using hjkl) by delaying highlighting until the cursor stops moving.
Requirements:
- Vim version 7.4.2180 or later with
timerssupport.
Configuration:
g:matchup_matchparen_deferred: Enable the feature (default:0).g:matchup_matchparen_deferred_show_delay: Delay in milliseconds before showing the highlight (default:50).g:matchup_matchparen_deferred_hide_delay: Delay in milliseconds before hiding the highlight (default:700).
Note: These delays cannot be changed dynamically and must be configured in your vimrc before the plugin loads.
" Enable deferred highlighting
let g:matchup_matchparen_deferred = 1
let g:matchup_matchparen_deferred_show_delay = 50
let g:matchup_matchparen_deferred_hide_delay = 700