I'm trying to auto-add ; , or whatever is needed in the end of expression by a keystroke, and go to another line.
Basicly it'll be something like inoremap <leader>; <C-o>A;, but i want a little improvement. If next line is empty (or doesn't exist) i want it to do <C-o>A;<cr>, and if it isn't empty just <C-o>A;<Down>. In other words i need an idiomatic way to check if next line exist and if it's empty. Thanks.