Aggiustamenti cambiando da latexsuite a vimtex + UltiSnips + varie.

This commit is contained in:
Emiliano Vavassori 2023-05-18 22:03:58 +02:00
parent 1d9abd1c11
commit 37a6b4cbe5
14 changed files with 276 additions and 388 deletions

View file

@ -1,29 +1,4 @@
" this is mostly a matter of taste. but LaTeX looks good with just a bit
" of indentation.
set softtabstop=2
set shiftwidth=2
set tabstop=2
set textwidth=78
" TIP: if you write your \label's as \label{fig:something}, then if you
" type in \ref{fig: and press <C-n> you will automatically cycle through
" all the figure labels. Very useful!
set iskeyword+=:
" Permits é in documents
imap <buffer> +it <Plug>Tex_InsertItemOnThisLine
" Permits ì in documents
imap <C-l> <Plug>Tex_LeftRight
" PDF Format
let g:Tex_CustomTemplateDirectory = '~/.vim/ftplugin/latex-suite/templates'
let g:Tex_DefaultTargetFormat = 'pdf'
let g:Tex_CompileRule_pdf = 'xelatex -interaction=nonstopmode $*'
let g:Tex_ViewRule_pdf = 'evince'
" Mappings for Beamer
call IMAP('BFR', "\\begin{frame}\<CR>\<Tab>\\frametitle{<+title+>}\<cr><++>\<cr>\\end{frame}<++>", 'tex')
call IMAP('BAL', "\\alert{~++~}~+overlay+~", 'tex', '~+', '+~')
call IMAP('BBL', "\\begin{block}{~+title+~}~+overlay+~\<CR>~++~\<CR>\\end{block}~++~", 'tex', '~+', '+~')
" Trying a vmap
vmap ,a "zdi\alert{<C-R>z}<ESC>