I have a function I wrote specifically for a certain session in vim. Manually redefining it every time I load the session is tedious. Is there any way custom functions can be saved with the session? If not, what're some options for speeding up reloading that function every time I load the session?
Save functions in a session
sessions;functions
Put the function in a file with the same name as your session file but ending in x.vim as described in item 10 under:help mks