When I try to read bash history into vim, I get nothing.
:r !history
If I just execute the command, i.e.
:!history
You may pre-write the history of current session: history -w Then in editor you can get last, say, 20 commands of history: :r ! tail -20 ~/.bash_history
history -w
:r ! tail -20 ~/.bash_history