Re: Multiple commands for -c option
- Hiroshi 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"