Last active
August 28, 2017 16:01
-
-
Save ni0n/a69500b9cdac25b8462882f34090bff8 to your computer and use it in GitHub Desktop.
useful mappings for auditing code - highlight word under cursor until switched off
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
let mapleader="," | |
map <Leader>mon :exe printf('match IncSearch /\V\<%s\>/', escape(expand('<cword>'), '/\'))<cr> | |
map <Leader>moff :exe printf('match IncSearch /\V\<%s\>/', '')<cr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment