Putting the :edit
command(s) into your ~/.vimrc
doesn't work because its sourcing happens too early. But you can delay the opening via :autocmd
:
:autocmd VimEnter * edit $MYVIMRC :autocmd VimEnter * split path/to/vim_cheatsheet
Above makes the files also visible in windows; I'm not sure you would want that. If you just need to define the buffers (without loading or displaying them in a window yet), you can use :badd
:
:badd $MYVIMRC :badd path/to/vim_cheatsheet