On 06.06.15 22:24, Eric Christopherson wrote: > On Sat, Jun 06, 2015, Paul wrote: > > I don't find that my vimrc settings take effect when using vi editing > > mode in readline. However, I can use the fc commad to switch into > > full fledged vim. Googling hasn't clarified whether it is built-in to > > bash or a separate command (there's info indicating both cases). In > > Cygwin, it seems to be a separate executable, so not part of bash. > > You can tell for sure what kind of command fc is with > > type fc > > in the shell. For me it outputs "fc is a shell builtin".
That, though, is not an answer to the question of the type of the executable which fc runs - it just shows that the "fc" initiator is builtin. A brief look in the bash manpage reveals that it merely serves to launch either $FCEDIT or $EDITOR. Here, executing: $ fc 801 confirms that another linux process is spawned, running vim: $ ps -ef | grep vim ... erik 4800 3105 1 21:15 pts/1 00:00:00 vim /tmp/bash-fc-4288462453 And .vimrc is sourced by this vim process, just like any other, as one would expect. In the bash-fc vim instance: :echo $MYVIMRC /home/erik/.vimrc which is additionally confirmed by all the personal settings being present. (No need to google any of this stuff. :-) Erik -- The rats can clear two hundred square meters in just 20 minutes. It would take humans with metal detectors five days to cover the same area. - http://www.abc.net.au/radionational/programs/latenightlive/african-herorats-detect-landmines-and-tuberculosis/6481122 -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
