We can get help on Vim functions by typing the following from within Vim.
:help somecommand
For example, the following sends us to the help text for the unmap functionality.:
:help unmap
Is there any way to get Vim help directly in the terminal? If I could put that functionality into a function, called say, vimhelp, I could then run from the terminal:
vimhelp unmap
And I could then open that text in Vim, like a normal file. Then I can use all the functionality I have come up with for all file working.
The question is now answered but for documentation purposes I would like to provide here the current state of the solution.
emanvim(){
if [ -z "${1}" ]; then
printf "Please provide Vim help topic.\n";
return;
fi
vim -i NONE -c "set bt=help|help $1" -- /tmp/dummy;
};