-
Notifications
You must be signed in to change notification settings - Fork 524
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
How to unfold by default #622
Comments
@glow12121
This commands run zR and unfold whole file on opening. Result might depends on position the line in ~/.vimrc file... |
Isn't it a workaround? I cannot figure out why the plugin keeps on folding the text one way or another, whichever folding level I select. Even if it's, say, 6, still all the stuff is folded. These are literally all my settings related to the plugin:
|
Well, yes. My suggestion is a workaround. Can't say about |
I think the problem might be that |
@mcookly Thanks for the tip setting that variable fixed the problem for me |
Thanks. This is working for me: vim.cmd [[
autocmd BufRead,BufNewFile *.markdown,*.md set conceallevel=2 foldlevelstart=6
]] Don't know if there is a better way. |
I'm on {
"preservim/vim-markdown",
ft = "markdown",
init = function()
vim.cmd [[set foldlevelstart=6]]
end,
dependencies = {
"godlygeek/tabular",
},
} |
With the settings above, I cannot figure out how to keep everything in markdown texts unfolded by default.
Specifically, I don't see how to control lines and empty lines being folded. Probably
let g:vim_markdown_override_foldtext = 0
has nothing to do with it.The text was updated successfully, but these errors were encountered: