disable auto-folding in vim-latex

This commit is contained in:
2023-03-12 10:38:26 +01:00
parent e02b9c4e66
commit a1d47f4968
2 changed files with 8 additions and 2 deletions

View File

@@ -53,8 +53,9 @@ autocmd TermOpen * setlocal nospell nonumber norelativenumber
nnoremap <silent> <tab> :if &modifiable && !&readonly && &modified <CR> :write<CR> :endif<CR>:bnext<CR>
nnoremap <silent> <s-tab> :if &modifiable && !&readonly && &modified <CR> :write<CR> :endif<CR>:bprevious<CR>
" disable folding
set nofoldenable
" toggle folding in normal mode with <space>
nnoremap <space> za
nnoremap <S-space> zA
let &packpath = &runtimepath
source ~/.config/nvim/plug.vim

View File

@@ -10,6 +10,11 @@ function! SetServerName()
call system(cmd)
endfunction
" Disable automatic folding in LaTeX
let Tex_FoldedSections=""
let Tex_FoldedEnvironments=""
let Tex_FoldedMisc=""
set grepprg=grep\ -nH\ $*
let g:tex_flavor='latex'
set iskeyword+=: