I want to copy the line above the cursor, but just from the current column to the end of that line.
Here s an illustration:
This was my attempt, but it doesn t work so well :-(
(defun dupchar()
(save-excursion
(line-move (-1) nil nil nil)
(setq mychar (thing-at-point char))
(insert mychar))