3 votes
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 s:old_iskeyword = &l:iskeyword<CR> \:...
user avatar
  • 28.3k

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