I included the following custom fold in .vimrc
let g:Tex_FoldedEnvironments = ',frame,block,algorithm'
I have perfect folding of frame
and block
, but not for algorithm
. It folds all the lines of algorithm
except the last line \end{algorithm}
.
How can I correct this?
FYI, my full .vimrc is the following:
execute pathogen#infect()
" from vim-latex installation manual
filetype plugin on
set shellslash
filetype indent on
let g:tex_flavor='latex'
let g:Tex_AdvancedMath = 1 " provides <Alt> mappings, overrides ASCII char insertion
" set winaltkeys=no " if there conflicts with menubar shortcuts
"compilation rules
let g:tex_flavor='latex'
let g:Tex_DefaultTargetFormat='pdf'
" let g:Tex_CompileRule_pdf = 'pdflatex -interaction=batchmode $*'
let g:Tex_CompileRule_pdf = 'pdflatex -interaction=nonstopmode $*'
" Folding keyworkds
let g:Tex_FoldedEnvironments = ',frame,block,algorithm'
" mapping compile to w and W
map :ww :w<cr><leader>ll<cr><leader>lv
map :WW :ww
" mapping Caps H,J,K,L to navigation
map J j
" map K k
" map L l
" map H h
"line numbering
set number
"Spell check
set spell