ready4god2513: here's a nice write-up on the topic: http://mislav.uniqpath.com/2013/02/merge-vs-rebase/
If you capistrano and rails then this is another option to achieve that: https://coderwall.com/p/gzp8ag
Rebase by default when doing git pull: https://coderwall.com/p/tnoiug
You may be also interested in this solution: https://coderwall.com/p/if9mda
I just wonder, is there a case where >ip works differently than >ap ?
You may be interested in vim-pasta plugin that does this automatically and in a smarter way: https://github.com/sickill/vim-pasta
This can be achieved automatically: https://coderwall.com/p/if9mda