I use the mapping
nnoremap <leader>m :w \|silent make\|redraw!\|cw<CR> which allows me to run make while I am editing a file by pressing
It annoys me that if my cursor is in the middle of a line when I run this command, after the command finishes, my cursor is moved to the start of the line.
Is there any way to prevent this behavior? I noticed that even when I run
:make, the same thing happens.