FakeVim
Vimスタイルの編集を設定するには、Preferences >FakeVim に進んでください。
Vim の動作を設定する
Vim の動作を設定するには、Preferences >FakeVim >General に進んでください。

プリセットを使う
- テキスト・エディター用に指定されたインデント設定を事前に選択するには、Copy Text Editor Settings を選択します。
- Qt コーディングスタイルを事前に選択するには、Set Qt Style を選択します。
- 単純なインデント・スタイルを事前に選択するには、Set Plain Style を選択します。
次に、事前に選択された設定を変更します。
プラグインのエミュレート
Plugin Emulation でエミュレートする人気のある vim プラグインを選択します。
次の表は、利用可能なプラグインとそのリンクです。
| Vim プラグイン | 説明 |
|---|---|
| vim-commentary | gc コード領域をコメントするアクション。例えば、gcc,gc2j 、gcip |
| ReplaceWithRegister |
|
| argtextobj.vim | 関数のパラメータ用にia とaa テキストオブジェクトを定義します。 |
| vim-exchange | vim のテキスト交換演算子。 |
| vim-surround | 周囲の削除、追加、変更のためのマッピングを追加します。 |
FakeVim コマンドのマッピング
FakeVim コマンドラインで入力されたコマンドをQt Creator 関数にマッピングします:
- Preferences >FakeVim >Ex Command Mapping にアクセスしてください。
- Filter フィールドに文字列を入力し、Qt Creator 関数を検索します。

- リストで関数を選択します。
- Regular expression フィールドに、関数のトリガーとなる文字列を入力する。
Ex Trigger Expression フィールドにトリガー式が表示されます。
選択したトリガー式を削除するには、Reset を選択します。
すべての関数のトリガ式をリセットするには、Reset All を選択します。
ユーザー コマンドのマッピング
ユーザー・コマンドをキーボード・ショートカットにマッピングするには、Preferences >FakeVim >User Command Mapping に進みます。ショートカットにマッピングされたユーザーコマンドは、FakeVim によって(マクロを再生するときのように)タイプしたかのように実行されます。

Vim のように編集する、FakeVim のモードとコマンドも参照してください 。
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.