# (Screencast) Move The Buffer Contents And Cursor Up Or Down By One Line

Move the buffer contents and cursor up or down by one line

(global-set-key (kbd "M-p") (kbd "C-u 1 C-v"))
(global-set-key (kbd "M-n") (kbd "C-u 1 M-v"))


## 3 thoughts on “(Screencast) Move The Buffer Contents And Cursor Up Or Down By One Line”

1. Vigneswari says:

Very cool.

1. Greg says:

Not quite as convenient as a single key binding, but you can do this in a slightly easier way than the sequence used here:
– M-1 M-v
– C-1 C-v

Even with your key binding this might occasional be useful to scroll more than one line, e.g. M-5 M-v works just as well.

1. Grant says:

Definitely! Thank you Greg.