mirror of
https://github.com/junegunn/vim-easy-align.git
synced 2025-11-18 06:43:40 -05:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d9c5ef9a4 | ||
|
|
b35b11d884 | ||
|
|
0ce554c4a5 | ||
|
|
3e5a11c3e6 | ||
|
|
99bc81d492 |
17
README.md
17
README.md
@@ -6,8 +6,23 @@ A simple, easy-to-use Vim alignment plugin without too much ambition.
|
||||
Demo
|
||||
----
|
||||
|
||||

|
||||
|
||||
[Screencast](https://vimeo.com/63506219)
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
Either [download zip file](http://www.vim.org/scripts/script.php?script_id=4520)
|
||||
and extract in ~/.vim or use [Vundle](https://github.com/gmarik/vundle) (recommended)
|
||||
or [Pathogen](https://github.com/tpope/vim-pathogen).
|
||||
|
||||
### With Vundle
|
||||
|
||||
```vim
|
||||
Bundle 'junegunn/vim-easy-align'
|
||||
```
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
@@ -113,7 +128,7 @@ For example, when aligning the following code block,
|
||||
}
|
||||
```
|
||||
|
||||
we don't want to the comment lines to affect the alignment,
|
||||
we don't want the comment lines to affect the alignment,
|
||||
so this is usually what we want.
|
||||
|
||||
```
|
||||
|
||||
@@ -5,7 +5,7 @@ let g:easy_align_loaded = 1
|
||||
|
||||
let s:easy_align_delimiters_default = {
|
||||
\ ' ': { 'pattern': ' ', 'margin_left': '', 'margin_right': '', 'stick_to_left': 0 },
|
||||
\ '=': { 'pattern': '<=>\|\(&&\|||\|<<\|>>\)=\|=\~\|=>\|[:+/*!%^=><&|-]\?=',
|
||||
\ '=': { 'pattern': '===\|<=>\|\(&&\|||\|<<\|>>\)=\|=\~\|=>\|[:+/*!%^=><&|-]\?=',
|
||||
\ 'margin_left': ' ', 'margin_right': ' ', 'stick_to_left': 0 },
|
||||
\ ':': { 'pattern': ':', 'margin_left': '', 'margin_right': ' ', 'stick_to_left': 1 },
|
||||
\ ',': { 'pattern': ',', 'margin_left': '', 'margin_right': ' ', 'stick_to_left': 1 },
|
||||
|
||||
@@ -51,7 +51,7 @@ Examples:
|
||||
EasyAlignRight *EasyAlignRight*
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
*EasyAlignRight* is the right-justified version of EasyAlign command.
|
||||
EasyAlignRight is the right-justified version of EasyAlign command.
|
||||
|
||||
|
||||
Partial alignment in blockwise-visual mode
|
||||
|
||||
Reference in New Issue
Block a user