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?
tletsequence looks a bit odd, so I can't tell if it's another mapping or just some keystrokes you want to have. As for combining, might be easier to use a function.
:help :bar? It sounds like you wish to run two commands, one immediately after the other
.shscript would print out content to STDIN then you just do
:put=systemlist('script.sh'). Other you just need to run your commands one after another, e.g.
script.sh; cat /tmp/foo