Bash is tricky, don’t let your editor get in your way. Here’s a couple of neat additions you could make to your vimrc for a better shell programming experience. Man pages inside vim Source this script to get started: runtime ftplugin/man.vim Now, you can open manpages inside vim with :Man! It adds nicer syntax highlighting and the ability to jump around with Ctrl-] and Ctrl-T. By default, the manpage is opened in a horizontal split, I prefer using a new tab: let g:ft_man_open_mode = 'tab'...