diff options
author | Teddy Wing | 2019-12-14 16:40:23 +0100 |
---|---|---|
committer | Teddy Wing | 2019-12-14 16:40:23 +0100 |
commit | d26b7d079468e89a81b10e81f875169e24a26f49 (patch) | |
tree | 415d20e77ec2020d7d697ca9bb3d94e85f244945 /autoload | |
parent | b772e113b413a1c12ca97cbcd9086d2cb5e3ca35 (diff) | |
download | vim-nohai-d26b7d079468e89a81b10e81f875169e24a26f49.tar.bz2 |
Deactivate nohlsearch when exiting command line without <CR>
Previously I was deactivating the <CR> mapping in the rhs of the <CR>
mapping. However, you can also exit command mode without pressing <CR>
(e.g., with <C-c>). In that case, the <CR> mapping would still be
active, causing regular search commands to nohlsearch on completion.
Now, use a `CmdlineLeave` `autocmd` instead to remove the mapping and
autocmd. This ensures the plugin always cleans up after itself when the
search line is exited.
Diffstat (limited to 'autoload')
0 files changed, 0 insertions, 0 deletions