Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to disable folding in Vim-LaTeX

📅 2013-May-01 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ folding, latex, vim, vim-latex ⬩ 📚 Archive

Vim-LaTeX is a popular plugin to edit and compile LaTeX files using Vim. However, it has code folding turned on by default.

To disable code folding in Vim-LaTeX, add these lines to your vimrc:

let g:Tex_FoldedSections     = ""
let g:Tex_FoldedEnvironments = ""
let g:Tex_FoldedMisc         = ""

This disables all the three types of code folding enabled by Vim-LaTeX.

Tried with: Vim-LaTeX 1.8.23, Vim 7.3 and Ubuntu 12.04 LTS