try these two mappings:
"move current line to the end of buffer without moving cursor nnoremap <leader>mv ddGp`` "copy current line to the end of buffer without moving cursor nnoremap <leader>cp YGp``
note that for the move case, the cursor position will be changed to the text of the next line, since the original line of text has disappeared. But he sits on one line (number).
If you want the anonymous register ( " ) to be untouched, I think we need to write a function for it.
Kent
source share