Skip to content

Instantly share code, notes, and snippets.

@squm
Created June 28, 2017 09:18
Show Gist options
  • Save squm/e92a26d397fa1ff0853559a5e7512b61 to your computer and use it in GitHub Desktop.
Save squm/e92a26d397fa1ff0853559a5e7512b61 to your computer and use it in GitHub Desktop.
map * :set hls<CR>:let @/ = '\<' . expand('<cword>') . '\>' <CR>:call histadd('/', @/)<CR>:echo @/<CR>
map g* :set hls<CR>:let @/ = expand('<cword>') <CR>:call histadd('/', @/)<CR>:echo @/<CR>
map # :set hls<CR>:let @/ = '\<' . expand('<cword>') . '\>' <CR>:call histadd('/', @/)<CR>:echo @/<CR>
map g# :set hls<CR>:let @/ = expand('<cword>') <CR>:call histadd('/', @/)<CR>:echo @/<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment