端末のサイズ変更を無効にする方法

端末のサイズ変更を無効にする方法

Vimスクリプトは時々フルシェル(私の場合はTaglistプラグイン)のサイズを変更します。

私はこの動作をしたくありません。これはresizeシェルコマンドでも達成できます。

シェルウィンドウで全体のサイズ変更を抑制する方法はありますか?.*rc転送するファイルはありますか?

GNOME端末を使用しています。

ベストアンサー1

Taglistの問題を解決するには、.vimrcに以下を追加します。

let Tlist_Inc_Winwidth=0

VIMドキュメントから:

Window resizing with xterm only works if the allowWindowOps resource is
enabled.  On some systems and versions of xterm it's disabled by default
because someone thought it would be a security issue.  It's not clear if this
is actually the case.

To overrule the default, put this line in your ~/.Xdefaults or
~/.Xresources:

    XTerm*allowWindowOps:       true
     (note: this actually ENABLES it, you want to DISABLE, ie: false)

And run "xrdb -merge .Xresources" to make it effective.  You can check the
value with the context menu (right mouse button while CTRL key is pressed),
there should be a tick at allow-window-ops.

Xresourcesの私の経験によると、「XTerm」部分を削除してアスタリスクで始めると、すべてのgnome端末でも機能します。 gnome端末には特定のプレフィックスがありますが、それについてはよくわかりません。誰かがその情報についてコメントできますが、*allowWindowOps: 偽ラインが役に立ちます。

おすすめ記事