M-x open-line creates a blank new line under the point/cursor without moving it.
c-l isn't used in insert mode and I like I have the following two lines in my
" C-o from emacs (open line at current point) inoremap <c-o> <esc><esc>mpA<cr><esc><esc>`pa " make C-l do C-o's job inoremap <c-l> <c-o>
This mapping has a number of drawbacks
- It clobbers whatever is in the
- If I use the
c-obinding when my cursor is at the beginning of the line, after executing
c-omy cursor is at position 1 instead of position 0.
- I have
set so=7so that I always see seven lines around my cursor if possible. If I'm near the bottom of this window invoking
c-ocounts as cursor movement
Is there a way of adding a new line below the cursor without changing its position or using a register?