Closed hemmer closed 11 years ago
You can check plugin/move.vim file, the nmap M is commented, but why not use mm
for EndOfLine and mmm
for Line?
nmap m <Plug>MoveMotionPlug
nmap mm <Plug>MoveMotionEndOfLinePlug
nmap mM <Plug>MoveMotionReplaceLinePlug
nmap mmm <Plug>MoveMotionLinePlug
xmap m <Plug>MoveMotionXPlug
Ah ok great. I don't think I've ever used M before so I'm just added this to my vimrc:
nmap M <Plug>MoveMotionEndOfLinePlug
This behaviour matches my previous (D for delete rest of line etc) thought process most closely.
Happy to hear things are working! Yes, I originally had M mapped to cut to the end of line but left it commented out since it shadows M (go to middle of screen). I'm the same way though, I prefer using it for cut but wasn't sure if that was the case for other users.
I wouldn't recommend using mmm to cut line and mm to cut to end of line, since my guess is that that would cause a delay after hitting mm (while it waits to see if you press another m)
While you're here could you answer a quick question: how do I cut move three lines? Both 3mm
, 3m
and 3M
don't seem to work!
You have found a bug :) I've uploaded a fix to allow 3mm to work (so try updating and see if that works) but still not sure how to allow things like 3mw, I'll look into that.
I wouldn't recommend using mmm to cut line and mm to cut to end of line, since my guess is that that would cause a delay after hitting mm (while it waits to see if you press another m)
When you hit mm then most of time you will j/k/h/l, that will stop the delay, like people map jj/jk to
That's true, though I think I would personally still prefer the instant feedback. Thanks for the pull request by the way! Just need to test it.
If I type :help M, the mapping should move any text up to the end of the line. However nothing happens on my system (blank .vimrc, only repeat-vim and vim easy-clip). Every other mapping appears to work fine (great plugin). Any ideas?
Version: VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 4 2012 04:22:36) Included patches: 1-429
Cheers, Ewan