Here I can suggest two workarounds.
They are solutions to this task:
In FCEDIT to use vim with an option different from the settings in .vimrc.
E.g. I have in .vimrc set textwidth=66.
But when I write code for one-liners I need no limit on linelentgth, i.e. textwidth=0.
The first solution is simple in regard to the code, but it needs to steps.
To write the new option into a file:
echo "set textwidth=0">/tmp/WEx_vimrc
And to setup FCEDIT:
export FCEDIT='vim -u /root/.vimrc -S /tmp/WEx_vimrc'
The second solution has the advantage that all what has to be done is to type "fc":
alias fc="echo \"set textwidth=0\">/tmp/WEx_vimrc; export FCEDIT='vim -u /root/.vimrc -S /tmp/WEx_vimrc'; fc"
Regards
Anton Wessel
== addendum 21.12.2022
It is desirable to have both version of fc available:
the normal version fc which is determined when FCEDIT is setup,
this special FC with a different vim option.
This can be achieved when both are setup in a script.
For this now I add following IMPORTANT REMARK:
The order is important:
first must be setup
alias fc="echo \"set textwidth=0\">/tmp/WEx_vimrc; export FCEDIT='vim -u ~/.vimrc -S /tmp/WEx_vimrc'; fc"
and afterwards as second:
export FCEDIT='vim -u ~/.vimrc'
Regards