Comments (10)
Interesting. This does not happen with me. Do you set the foldlevel somewhere? Try :verbose set foldlevel
to see where it was set the last time.
from vimtex.
:verbose set foldlevel
yields foldlevel=0
Notice, I also tried this in gvim which does show the same behaviour
from vimtex.
Strange. I have no idea what causes this. Could you try to create a minimum working example? What version of vim are you using?
from vimtex.
Here's a minimum working example which shows the same behaviour:
\documentclass{scrartcl}
\usepackage{biblatex} % one additional line to \documentclass is necessary for folding to happen
\begin{document}
\section{Intro}
Hello
\end{document}
I Included a section to test whether automatic folding at startup works or not. My vim version is the current one from Archlinux, 7.4.459
I also used this mini vimrc, same result. Additionally, I renamed my ftplugin/tex.vim
so it doesn't get sourced, but still no change.
But if it works for you and as this still is just a minor problem that actually might be local to my machine only, I think we shouldn't spend too much effort on this. Except if you have any quick idea, I'd be happy to help…
from vimtex.
Thanks, your MWE reproduces the problem for me. If I add a line above the documentclass, then the problem goes away. I'll investigate further when I get some time. In the meantime, you could add a simple comment as your first line.
from vimtex.
This very simple commit seems to fix the issue. Let me know if it works for you as well.
from vimtex.
Indeed. Empty first line solves the problem. Thats a good workaround for the the time being! Do you always have empty or commented first lines?
from vimtex.
Haha, sorry, I just forgot to push. Try the latest version.
from vimtex.
Works, nice one! Thanks a lot!
from vimtex.
Great!
from vimtex.
Related Issues (20)
- Show which float shows a warning message HOT 4
- Zathura fails for symbolic links (physical vs. absolute logical paths) HOT 3
- pdf outfile should be updated to match the argument to compile command HOT 3
- Arabic text is concealed when indented HOT 4
- Partial concealment of symbols HOT 6
- `which-key.nvim` support HOT 2
- Difficulty getting Okular inverse search to work HOT 7
- Automatically source syntax highlight changes for vimtex highlight groups HOT 2
- Changes in Treesitter parser broke vimtex syntax highlighting HOT 1
- [Question] Combine default markdown syntax and vimtex syntax? HOT 3
- cite command syntax highlighting including various variants introduced by biblatex-chicago HOT 23
- Neovim and Zathura: no inverse search HOT 4
- about slow syntax highlighting HOT 12
- citekey autofill not working with \Volcite and \volcite when using correct biblatex syntax HOT 4
- zathura_simple on wayland not outputting pdf HOT 7
- Contents on Zathura are not recoganizable when doing forward search if the cursor stays on an equation environment HOT 1
- Disregard contents of "comment" environment HOT 6
- Errors E716 E116 when running :VimtexTocOpen in a file containing a \label HOT 3
- Item Option highlight group and concealing HOT 3
- How to replace deprecated option 'vimtex_view_general_options_latexmk'? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vimtex.