> On Friday, April 20, 2012 2:07:24 PM UTC-5, Andy Wokula wrote:
> >
> > :h getcmdline()
> > :h c_CTRL-\_e
> Awesome, I didn't know about c_CTRL-\_e, I was wondering why there
> wasn't a setcmdline() function. Now I know! That functionality is
> elsewhere.
Rather than changing one's working habits and resorting to a cmap'd key
combo, is there any way I could transparently cause a custom function to
be invoked, say.. each time I enter a ':!...' command (or even any Ex
command) so that I could inspect the content of the command and fiddle
with it in certain cases.
I have not looked into it, but I'm thinking of doing :cabbrev's on
either '!' or the final <CR> .. but this looks soooo ugly to start off
with that I'm a little reluctant to go down that road without making
sure that there is not a clean/standard Vim solution that I missed.
The context is that I am revisiting this iFAQ where once in a while
a *nix user complains that bash aliases and functions are not available
when invoking the shell via ':!'.. I have come to the conclusion that
the $BASH_ENV hack is not satisfactory.
Not sure if I'm hijacking this thread.. If so, please let me know and
I'll open a separate ticket.
Thanks,
CJ
--
ALL YOUR BASE ARE BELONG TO US!
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment