mirror of
https://github.com/junegunn/vim-easy-align.git
synced 2025-11-14 21:03:48 -05:00
Revert C-style variable definition example
This commit is contained in:
@@ -369,14 +369,14 @@ So what do we do? Let's try to improve our alignment rule.
|
|||||||
|
|
||||||
```vim
|
```vim
|
||||||
let g:easy_align_delimiters['d'] = {
|
let g:easy_align_delimiters['d'] = {
|
||||||
\ 'pattern': ' \(\S\+\s*[;=,]\)\@=',
|
\ 'pattern': ' \(\S\+\s*[;=]\)\@=',
|
||||||
\ 'left_margin': 0, 'right_margin': 0
|
\ 'left_margin': 0, 'right_margin': 0
|
||||||
\ }
|
\ }
|
||||||
```
|
```
|
||||||
|
|
||||||
Now the new rule has changed to align text around spaces that are followed
|
Now the new rule has changed to align text around spaces that are followed
|
||||||
by some non-whitespace characters and then an equals sign, a comma, or a
|
by some non-whitespace characters and then an equals sign or a semi-colon.
|
||||||
semi-colon. Try `<Enter>d`
|
Try `<Enter>d`
|
||||||
|
|
||||||
```c
|
```c
|
||||||
const char* str = "Hello";
|
const char* str = "Hello";
|
||||||
|
|||||||
Reference in New Issue
Block a user