diff options
Diffstat (limited to 'clang-tools-extra/docs')
-rw-r--r-- | clang-tools-extra/docs/clang-rename.rst | 9 | ||||
-rw-r--r-- | clang-tools-extra/docs/include-fixer.rst | 12 |
2 files changed, 14 insertions, 7 deletions
diff --git a/clang-tools-extra/docs/clang-rename.rst b/clang-tools-extra/docs/clang-rename.rst index 0b37669f632..4c02b6dbd51 100644 --- a/clang-tools-extra/docs/clang-rename.rst +++ b/clang-tools-extra/docs/clang-rename.rst @@ -92,8 +92,11 @@ You can call :program:`clang-rename` directly from Vim! To set up `clang-rename/tool/clang-rename.py <http://reviews.llvm.org/diffusion/L/browse/clang-tools-extra/trunk/clang-rename/tool/clang-rename.py>`_. -Once installed, you can point your cursor to the symbols you want to rename, -press `,cr` and print new desired name. - Please note that **you have to save all buffers, in which the replacement will happen before running the tool**. + +Once installed, you can point your cursor to symbols you want to rename, press +``<leader>cr`` and print new desired name. The +[``<leader> key``](http://vim.wikia.com/wiki/Mapping_keys_in_Vim_-_Tutorial_(Part_3)#Map_leader) +is a reference to a specific key defined by the mapleader variable and is binded +to backslash by default. diff --git a/clang-tools-extra/docs/include-fixer.rst b/clang-tools-extra/docs/include-fixer.rst index 7bf6dc62982..015e734e740 100644 --- a/clang-tools-extra/docs/include-fixer.rst +++ b/clang-tools-extra/docs/include-fixer.rst @@ -64,10 +64,14 @@ following key binding to your ``.vimrc``: .. code-block:: console - map ,cf :pyf path/to/llvm/source/tools/clang/tools/extra/include-fixer/tool/clang-include-fixer.py<cr> - -This enables `clang-include-fixer` for NORMAL and VISUAL mode. Change ``,cf`` to -another binding if you need clang-include-fixer on a different key. + noremap <leader>cf :pyf path/to/llvm/source/tools/clang/tools/extra/include-fixer/tool/clang-include-fixer.py<cr> + +This enables `clang-include-fixer` for NORMAL and VISUAL mode. Change +``<leader>cf`` to another binding if you need clang-include-fixer on a different +key. The +[``<leader> key``](http://vim.wikia.com/wiki/Mapping_keys_in_Vim_-_Tutorial_(Part_3)#Map_leader) +is a reference to a specific key defined by the mapleader variable and is binded +to backslash by default. Make sure vim can find :program:`clang-include-fixer`: |