New answers tagged

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.1k

Top 50 recent answers are included