Skip to content

Instantly share code, notes, and snippets.

@ni0n
ni0n / gist:a69500b9cdac25b8462882f34090bff8
Last active August 28, 2017 16:01
useful mappings for auditing code - highlight word under cursor until switched off
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>