Skip to content

Make "{{" OpenSpecial optional #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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