Loading ...
Sorry, an error occurred while loading the content.

Re: Multiple commands for -c option

Expand Messages
  • Antoine J. Mechelynck
    ... [...] Yes. ++enc sets the fileencoding option for the file concerned (as with ... HTH, Tony.
    Message 1 of 6 , Feb 29, 2004
      Hiroshi Iwatani <HGA03630@...> wrote:
      > > I think this will work for you:
      > >
      > > vi -c 'e ++enc=cp932 ..File..'
      > Yes.
      > 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"

    Your message has been successfully submitted and would be delivered to recipients shortly.