1

私はいくつかのコードを持っています:

    Vector3 targetCoords = this.GetFiringSolution(
        targetObject,
        targetObject.root.rigidbody.velocity,
        muzzle,
        verticalRotator.root.rigidbody.velocity,
        projectileForce 
    )

しかし、vimで (gg+G) を使用すると、これが次のようになります

    Vector3 targetCoords = this.GetFiringSolution(
            targetObject,
            targetObject.root.rigidbody.velocity,
            muzzle,
            verticalRotator.root.rigidbody.velocity,
            projectileForce 
    )

これが私の :set 出力です:

--- Options ---
  autoindent          cindent             fileformat=unix     history=50          modified            scroll=28           smartindent       notextmode
  background=dark     diffexpr=MyDiff()   filetype=cs         hlsearch            number              shiftwidth=4        syntax=cs           visualbell
  backup              expandtab           helplang=en         incsearch           ruler               showmatch           tabstop=4           window=57
  backspace=indent,eol,start
  comments=sO:* -,mO:*  ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
  formatoptions=croql
  keymodel=startsel,stopsel
  selection=exclusive
  selectmode=mouse,key
  viminfo=%,'100,<50,s10,h,rA:,rB:
  whichwrap=b,s,<,>,[,]
  wildignore=*.meta,*.swp

とにかくこの動作を止める方法はありますか? cimoptions を調べてみましたが、完全には理解できませんでした。これは、C# と PHP の両方で複数行の関数呼び出し (および同様のもの) で発生します (おそらく他のもの)。

また、si/ai と両方をオンにしてみましたが、役に立ちませんでした。

前もって感謝します。

4

1 に答える 1

1

のvimヘルプからcinoptions-values

    +N    Indent a continuation line (a line that spills onto the next)
          inside a function N additional characters.  (default
          'shiftwidth').
          Outside of a function, when the previous line ended in a
          backslash, the 2 * N is used.

したがって、完全に無効にするかcindent、関数の外側で二重インデントを使用する必要があるようです。

于 2013-10-23T05:34:32.550 に答える