1

d$ works just fine.

I've remmapped $ to -

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

My remap:

nnoremap - $
vnoremap - $
Costa Michailidis
  • 7,691
  • 15
  • 72
  • 124

1 Answers1

3

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.

Peter Rincker
  • 43,539
  • 9
  • 74
  • 101
  • 1
    It might also be worth mentioning that he can combine them into `noremap` (Assuming he doesn't need select) – FDinoff Jan 07 '15 at 00:33
  • Thanks so much! Found a full list too for anyone who's looking: http://stackoverflow.com/questions/3776117/what-is-the-difference-between-the-remap-noremap-nnoremap-and-vnoremap-mapping/11676244#11676244 – Costa Michailidis Jan 07 '15 at 01:13