Rename :EasyAlignRight to :EasyAlign!

This commit is contained in:
Junegunn Choi
2013-08-04 18:04:56 +09:00
parent badb701721
commit 06d5bcb911
4 changed files with 22 additions and 23 deletions

View File

@@ -35,8 +35,8 @@ Bundle 'junegunn/vim-easy-align'
Usage
-----
_vim-easy-align_ defines `:EasyAlign` and `:EasyAlignRight` commands in the
visual mode.
_vim-easy-align_ defines `:EasyAlign` command (and the right-justification
variant `:EasyAlign!`) in the visual mode.
| Mode | Command |
| ------------------------- | --------------------------------------------- |
@@ -46,7 +46,7 @@ visual mode.
### Interactive mode
The commands will go into the interactive mode when no argument is given.
The command will go into the interactive mode when no argument is given.
For convenience, it is advised that you define a mapping for triggering it in
your `.vimrc`.
@@ -83,7 +83,7 @@ Alignment rules for the following delimiters have been defined to meet the most
#### Example command sequences
| With visual map | Description | Equivalent command |
| ------------------- | -------------------------------------------------------- | ------------------------- |
| ------------------- | -------------------------------------------------------- | --------------------- |
| `<Enter><space>` | Alignment around 1st whitespaces | `:'<,'>EasyAlign\ ` |
| `<Enter>2<space>` | Alignment around 2nd whitespaces | `:'<,'>EasyAlign2\ ` |
| `<Enter>-<space>` | Alignment around the last whitespaces | `:'<,'>EasyAlign-\ ` |
@@ -93,8 +93,8 @@ Alignment rules for the following delimiters have been defined to meet the most
| `<Enter>3=` | Alignment around 3rd equals signs (and the likes) | `:'<,'>EasyAlign3=` |
| `<Enter>*=` | Alignment around all equals signs (and the likes) | `:'<,'>EasyAlign*=` |
| `<Enter>**=` | Left-right alternating alignment around all equals signs | `:'<,'>EasyAlign**=` |
| `<Enter><Enter>=` | Right-justified alignment around 1st equals signs | `:'<,'>EasyAlignRight=` |
| `<Enter><Enter>**=` | Right-left alternating alignment around all equals signs | `:'<,'>EasyAlignRight**=` |
| `<Enter><Enter>=` | Right-justified alignment around 1st equals signs | `:'<,'>EasyAlign!=` |
| `<Enter><Enter>**=` | Right-left alternating alignment around all equals signs | `:'<,'>EasyAlign!**=` |
| ... | ... | |
### Non-interactive mode

View File

@@ -7,7 +7,7 @@ A simple, easy-to-use Vim alignment plugin without too much ambition.
Source: https://github.com/junegunn/vim-easy-align
EasyAlign *EasyAlign*
EasyAlign *:EasyAlign*
-------------------------------------------------------------------------
vim-easy-align defines `:EasyAlign` command in the visual mode.
@@ -61,10 +61,10 @@ Examples:
<Enter><Enter>**= Right-left alternating alignment around all equals signs
EasyAlignRight *EasyAlignRight*
EasyAlign! *:EasyAlign!*
-------------------------------------------------------------------------
EasyAlignRight is the right-justified version of EasyAlign command.
:EasyAlign! is the right-justification version of :EasyAlign command.
Non-interactive mode

View File

@@ -26,5 +26,4 @@ if exists("g:loaded_easy_align_plugin")
endif
let g:loaded_easy_align_plugin = 1
command! -nargs=* -range EasyAlign <line1>,<line2>call easy_align#align(0, <q-args>)
command! -nargs=* -range EasyAlignRight <line1>,<line2>call easy_align#align(1, <q-args>)
command! -nargs=* -range -bang EasyAlign <line1>,<line2>call easy_align#align('<bang>' == '!', <q-args>)

View File

@@ -1 +1 @@
4Gvipjyvip:EasyAlign:
4Gvipjyvip:EasyAlign: