dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

tex.vim (1251B)


      1 nnoremap <buffer> <leader>tt :VimtexTocToggle<CR>
      2 nnoremap <buffer> <leader>to :VimtexTocOpen<CR>
      3 inoremap <buffer> . .<c-g>u
      4 inoremap <buffer> ? ?<c-g>u
      5 inoremap <buffer> ! !<c-g>u
      6 inoremap <buffer> , ,<c-g>u
      7 inoremap <buffer> : :<c-g>u
      8 inoremap <buffer> ; ;<c-g>u
      9 inoremap <buffer> - -<c-g>u
     10 setlocal formatoptions-=cat wrap
     11 setlocal conceallevel=2
     12 
     13 setlocal suffixesadd+=.pdf
     14 command! BibOpenFile exe 'call system("open '.findfile(expand("<cfile>")).'")'
     15 nnoremap go :BibOpenFile<CR>
     16 
     17 command! -buffer Todo Ag \\?((TO ?DO)|FIXME)[:{]<space>?
     18 
     19 " Set up folding. By default use indent, fdm=expr can be set in modeline.
     20 setlocal foldmethod=indent
     21 setlocal foldexpr=vimtex#fold#level(v:lnum)
     22 setlocal foldtext=vimtex#fold#text()
     23 setlocal expandtab
     24 
     25 nnoremap <buffer> <localleader>ln :vimgrep /newcommand/ **/*.sty **/*.tex **/*.cls<CR>
     26 
     27 setlocal spell spelllang=en_us
     28 
     29 " Set up surround
     30 if exists('g:loaded_surround')
     31   let b:surround_99 = "\\\1command: \1{\r}"
     32 endif
     33 let b:undo_ftplugin = (exists('b:undo_ftplugin') ? b:undo_ftplugin.'|' : '')
     34 let b:undo_ftplugin .= 'nmapc <buffer>'
     35 let b:undo_ftplugin .= '|imapc <buffer>'
     36 let b:undo_ftplugin .= '|setlocal formatoptions< wrap< foldmethod< foldexpr< foldtext< expandtab< conceallevel< suffixesadd<'