Costa Michailidis
Costa Michailidis

Reputation: 8178

remapping $ doesn't apply to deleting with d$

d$ works just fine.

I've remmapped $ to -

But d- now deletes to the beginning of the previous line.

My remap:

nnoremap - $
vnoremap - $

Upvotes: 1

Views: 67

Answers (1)

Peter Rincker
Peter Rincker

Reputation: 45157

You may want to use an operator pending mode mapping:

onoremap - $

I would also suggest you use xnoremap - $ instead of vnoremap so that you avoid a mapping in selection mode.

Upvotes: 3

Related Questions