1 vote
Accepted

Accept hyphen when using `<C-R><C-W>`

A straightforward (if not exactly elegant) way to do this is just to temporarily set iskeyword to include the hyphen: nnoremap <silent> K :let old_iskeyword = &iskeyword<CR> \:set ...
user avatar
  • 28k

Only top scored, non community-wiki answers of a minimum length are eligible