Skip to content
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

Folds are open on editing a new .src file #9

Open
KnoP-01 opened this issue May 7, 2019 · 1 comment
Open

Folds are open on editing a new .src file #9

KnoP-01 opened this issue May 7, 2019 · 1 comment
Labels

Comments

@KnoP-01
Copy link
Owner

KnoP-01 commented May 7, 2019

Even though g:krlFoldLevel is explicitly set folds are all open on opening a .src file.

Without using
call plug#begin('~/.vim/plugged')
all is fine...

@KnoP-01 KnoP-01 added the bug label May 7, 2019
@KnoP-01
Copy link
Owner Author

KnoP-01 commented May 16, 2019

I can come around this bug with

call plug#end()
syntax off " undo what plug#begin() did to syntax
filetype plugin indent off " undo what plugin#begin() did to filetype
syntax on " before filetype plugin on
filetype plugin indent on " after syntax on

The main reason for this bug is that there are

syn region krlFold

commands not in the syntax file but in the ftplugin. That is probably bad practice. I have to move some functions (KrlIsVkrc() in particular) to autoload and move the syn commands to the syntax file.

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

No branches or pull requests

1 participant