I have a vimrc file. In that file i have the following two lines.
noremap gg :silent exec "!/home/john/gf.sh /home/john/guides/"<enter><C-L> nmap gh tlet @"=system('perl /home/john/get_buffer.pl')<enter>P<enter>^
The first command runs script gf.sh. Which, long story short, prints a file selected by the user, into /tmp/file.
The second command, gh. Prints /tmp/file, into buffer @". And then prints that buffer, wherever I happen to be in Vim.
What I am trying to achieve, is to execute both of those things with a single command. I just don't understand how to achieve that. I have been trying for well over an hour.
How can I, achieve those two functionalities, at once?