The useful command
:r!date
is not so useful in gVim for Windows (not cygwin's gVim) because Windows has its own date function which does not do what I want.
so, something like
:r!c:\cygwin\bin\date
would be great. But that's a lot to type. And considering that I might want to call a few things this way, it would be nice to write a function, which I could pass an argument foo
and it would run
:r!c:\cygwin\bin\foo
What's the best way to do this? It should be 1) Permanent (stored in vimrc or some startup file) 2) Executed with as few keystrokes as possible. Any suggestions for good places to create mappings are appreciated.
Thanks!