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 <leader>m.
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.
:makein terms of how!works. It seems that:make!will do what you're looking for. – tommcdo May 27 '15 at 21:41