Updating README.md
This commit is contained in:
parent
86dd7aecc5
commit
15bae033dc
76
README.md
76
README.md
@ -116,13 +116,37 @@ file basis using `ftplugin` or `autocmd`. For example, the `argwrap_tail_comma`
|
|||||||
*Tail comma enabled for square brackets only (`let g:argwrap_tail_comma_braces = '['`)*
|
*Tail comma enabled for square brackets only (`let g:argwrap_tail_comma_braces = '['`)*
|
||||||
|
|
||||||
```
|
```
|
||||||
r = [
|
[
|
||||||
|
1,
|
||||||
2,
|
2,
|
||||||
3,
|
3,
|
||||||
5,
|
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* **argwrap\_tail\_indent\_braces**
|
||||||
|
|
||||||
|
Specifies if the closing brace should be indented to argument depth.
|
||||||
|
|
||||||
|
*Tail indent disabled*
|
||||||
|
|
||||||
|
```
|
||||||
|
Foo(
|
||||||
|
wibble,
|
||||||
|
wobble,
|
||||||
|
wubble
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
*Tail indent enabled for parenthesis (`let g:argwrap_tail_indent_braces = '('`)*
|
||||||
|
|
||||||
|
```
|
||||||
|
Foo(
|
||||||
|
wibble,
|
||||||
|
wobble,
|
||||||
|
wubble
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
* **argwrap\_wrap\_closing\_brace**
|
* **argwrap\_wrap\_closing\_brace**
|
||||||
|
|
||||||
Specifies if the closing brace should be wrapped to a new line.
|
Specifies if the closing brace should be wrapped to a new line.
|
||||||
@ -146,6 +170,54 @@ file basis using `ftplugin` or `autocmd`. For example, the `argwrap_tail_comma`
|
|||||||
wubble)
|
wubble)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* **argwrap\_comma\_first**
|
||||||
|
|
||||||
|
Specifies if the argument comma delimiter should be placed before arguments.
|
||||||
|
|
||||||
|
*Comma first disabled (default)*
|
||||||
|
|
||||||
|
```
|
||||||
|
Foo(
|
||||||
|
wibble,
|
||||||
|
wobble,
|
||||||
|
wubble
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
*Comma first enabled (`let g:argwrap_comma_first = 1`)*
|
||||||
|
|
||||||
|
```
|
||||||
|
Foo(
|
||||||
|
wibble
|
||||||
|
, wobble
|
||||||
|
, wubble
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
* **argwrap\_comma\_first\_indent**
|
||||||
|
|
||||||
|
Specifies if the first argument should be indented when used in conjunction with `argwrap_comma_first`.
|
||||||
|
|
||||||
|
*Comma first indent disabled (default)*
|
||||||
|
|
||||||
|
```
|
||||||
|
Foo(
|
||||||
|
wibble
|
||||||
|
, wobble
|
||||||
|
, wubble
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
*Comma first indent enabled (`let g:argwrap_comma_first_indent = 1`)*
|
||||||
|
|
||||||
|
```
|
||||||
|
Foo(
|
||||||
|
wibble
|
||||||
|
, wobble
|
||||||
|
, wubble
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
## Usage ##
|
## Usage ##
|
||||||
|
|
||||||
1. Position the cursor *inside* of the scope of the parenthesis, brackets or curly braces you wish to wrap/unwrap (not
|
1. Position the cursor *inside* of the scope of the parenthesis, brackets or curly braces you wish to wrap/unwrap (not
|
||||||
|
Loading…
Reference in New Issue
Block a user