Skip to content

Allow to carry the remainder of the line when breaking line inside brackets#178

Open
sQu1rr wants to merge 3 commits into
jiangmiao:masterfrom
sQu1rr:master
Open

Allow to carry the remainder of the line when breaking line inside brackets#178
sQu1rr wants to merge 3 commits into
jiangmiao:masterfrom
sQu1rr:master

Conversation

@sQu1rr

@sQu1rr sQu1rr commented Apr 20, 2017

Copy link
Copy Markdown

Example:

if (something) {|<CR>} break;

becomes

if (something) {
    break;
}

Limited to parens only created in the same "insert mode session" and when cursor is not inside unclosed parens. Activated with:

let g:AutoPairsCarryOnReturn = 1

In action:
example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant