Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

question: disable folding? Overriding sls.vim's "foldmethod=indent" #43

Open
jquast opened this issue Mar 24, 2016 · 1 comment
Open

Comments

@jquast
Copy link

jquast commented Mar 24, 2016

Having a difficult time overriding the folding set by PR #1:

" folding
setlocal foldmethod=indent
setlocal foldlevel=6  " by default do not fold

I use a very vanilla vim, but folding occurs, appears as:

verify-docker-tcp-server:
  cmd.run:
    # although docker service is 'started', we must await a few seconds until tcp port is bound
    - name: |
        timeout 10 bash -c '\
            until curl --verbose --fail --show-error --silent \
+--------  4 lines: https://localhost:2376/images/json \----------------------------------------------
            do
                sleep 1
            done'

If I try to disable this by .vimrc:

set foldmethod=manual

These settings are not honored when opening any .sls file, they remain as set in sls.vim, when i type ":set foldmethod" on any non-.sls file, foldmethod=manual, but opening a .sls sets foldmethod=indent again.

@whiteinge
Copy link
Contributor

I agree. We should have an overridable setting to opt-in to using folding rather than turning it on by default. As a quick addition #48 has bumped that threshold up a bit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants