... [...] Yes. ++enc sets the fileencoding option for the file concerned (as with ... HTH, Tony.Message 1 of 6 , Feb 29, 2004View SourceHiroshi Iwatani <HGA03630@...> wrote:
> > I think this will work for you:[...]
> > vi -c 'e ++enc=cp932 ..File..'
> gvim -c "e ++enc=cp932" file
> does work. But only anxiety is whether this command could also
> play the function of set fenc. In other words,
> -c "set fenc=cp932" -c "e ++enc=cp932"
> is unnecessarily redundant?
Yes. ++enc sets the 'fileencoding' option for the file concerned (as with
:setlocal fileencoding), see ":help ++opt"