Skip to content

Conversation

ebassett
Copy link

@ebassett ebassett commented May 9, 2015

You can now disable the special behaviour that makes typing "{{" convert
that second "{" into an indented line before the "}", by adding this to
your vimrc:
let g:autoclose_openspecial = 0
This can be done globally, or in augroups in order to have it apply only
to specified file types/extensions.
Re-enabling the behaviour can be accomplished by leaving out the above
setting, or by setting it to 1.

I want this behaviour to be optional because I like it when coding, but I also use vimwiki to make development notes, and it uses the string "{{{ }}}" to mark code blocks, which AutoClose currently makes very difficult to type. So I added the ability to disable the "{{" behaviour to AutoClose, and then set the variable in an augroup for *.wiki files.

You can now disable the special behaviour that makes typing "{{" convert
that second "{" into an indented line before the "}", by adding this to
your vimrc:
  let g:autoclose_openspecial = 0
This can be done globally, or in augroups in order to have it apply only
to specified file types/extensions.
Re-enabling the behaviour can be accomplished by leaving out the above
setting, or by setting it to 1.
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