Skip to content

Instantly share code, notes, and snippets.

@ni0n
Last active August 28, 2017 16:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ni0n/a69500b9cdac25b8462882f34090bff8 to your computer and use it in GitHub Desktop.
Save ni0n/a69500b9cdac25b8462882f34090bff8 to your computer and use it in GitHub Desktop.
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment