branch: elpa/evil-iedit-state commit 44863e6cff47d2f27a40233ef1453a80837a87ac Author: Frederic Merizen <frederic.meri...@soft-xki.com> Commit: Sylvain Benner <sylvain.ben...@gmail.com>
Fix table formatting in README.md --- README.md | 68 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 0967164744..e0afafbaa4 100644 --- a/README.md +++ b/README.md @@ -53,13 +53,13 @@ both `iedit` and `evil` to be installed. ### State transitions - Key Binding | From | To --------------------|:------------------:|:-------------------------: -<kbd>e</kbd> | expand-region | iedit -<kbd>ESC</kbd> | iedit | normal -<kbd>C-g</kbd> | iedit | normal -<kbd>ESC</kbd> | iedit-insert | iedit -<kbd>C-g</kbd> | iedit-insert | normal +| Key Binding | From | To | +|-------------------|:------------------:|:-------------------------:| +|<kbd>e</kbd> | expand-region | iedit | +|<kbd>ESC</kbd> | iedit | normal | +|<kbd>C-g</kbd> | iedit | normal | +|<kbd>ESC</kbd> | iedit-insert | iedit | +|<kbd>C-g</kbd> | iedit-insert | normal | To sum-up, in `iedit-insert state` you have to press <kbd>ESC</kbd> twice to go back to the `normal state`. You can also at any time press <kbd>C-g</kbd> @@ -73,39 +73,39 @@ to return to `normal state`. `iedit state` inherits from `normal state`, the following key bindings are specific to `iedit state`. - Key Binding | Description -------------------|------------------------------------------------------------ -<kbd>ESC</kbd> | go back to `normal state` -<kbd>TAB</kbd> | toggle current occurrence -<kbd>0</kbd> | go to the beginning of the current occurrence -<kbd>$</kbd> | go to the end of the current occurrence -<kbd>#</kbd> | prefix all occurrences with an increasing number (<kbd>C-u</kbd> to choose the starting number). -<kbd>A</kbd> | go to the end of the current occurrence and switch to `iedit-insert state` -<kbd>D</kbd> | delete the occurrences -<kbd>F</kbd> | restrict the scope to the function -<kbd>gg</kbd> | go to first occurrence -<kbd>G</kbd> | go to last occurrence -<kbd>I</kbd> | go to the beginning of the current occurrence and switch to `iedit-insert state` -<kbd>J</kbd> | increase the edition scope by one line below -<kbd>K</kbd> | increase the edition scope by one line above -<kbd>L</kbd> | restrict the scope to the current line -<kbd>n</kbd> | go to next occurrence -<kbd>N</kbd> | go to previous occurrence -<kbd>p</kbd> | replace occurrences with last yanked (copied) text -<kbd>S</kbd> | (substitute) delete the occurrences and switch to `iedit-insert state` -<kbd>V</kbd> | toggle visibility of lines with no occurrence -<kbd>U</kbd> | Up-case the occurrences -<kbd>C-U</kbd> | down-case the occurrences +| Key Binding | Description | +|------------------|-------------------------------------------------------------------------------------------------| +|<kbd>ESC</kbd> | go back to `normal state` | +|<kbd>TAB</kbd> | toggle current occurrence | +|<kbd>0</kbd> | go to the beginning of the current occurrence | +|<kbd>$</kbd> | go to the end of the current occurrence | +|<kbd>#</kbd> | prefix all occurrences with an increasing number (<kbd>C-u</kbd> to choose the starting number).| +|<kbd>A</kbd> | go to the end of the current occurrence and switch to `iedit-insert state` | +|<kbd>D</kbd> | delete the occurrences | +|<kbd>F</kbd> | restrict the scope to the function | +|<kbd>gg</kbd> | go to first occurrence | +|<kbd>G</kbd> | go to last occurrence | +|<kbd>I</kbd> | go to the beginning of the current occurrence and switch to `iedit-insert state` | +|<kbd>J</kbd> | increase the edition scope by one line below | +|<kbd>K</kbd> | increase the edition scope by one line above | +|<kbd>L</kbd> | restrict the scope to the current line | +|<kbd>n</kbd> | go to next occurrence | +|<kbd>N</kbd> | go to previous occurrence | +|<kbd>p</kbd> | replace occurrences with last yanked (copied) text | +|<kbd>S</kbd> | (substitute) delete the occurrences and switch to `iedit-insert state` | +|<kbd>V</kbd> | toggle visibility of lines with no occurrence | +|<kbd>U</kbd> | Up-case the occurrences | +|<kbd>C-U</kbd> | down-case the occurrences | **Note:** <kbd>0</kbd>, <kbd>$</kbd>, <kbd>A</kbd> and <kbd>I</kbd> have the default Vim behavior when used outside of an occurrence. ### In iedit-insert state - Key Binding | Description ----------------------------|------------------------------------------------------------ -<kbd>ESC</kbd> | go back to `iedit state` -<kbd>C-g</kbd> | go back to `normal state` +| Key Binding | Description | +|---------------------------|------------------------------------------------------------| +|<kbd>ESC</kbd> | go back to `iedit state` | +|<kbd>C-g</kbd> | go back to `normal state` | [melpa-link]: http://melpa.org/ [evil-link]: https://gitorious.org/evil/pages/Home