|
|
|
@ -41,9 +41,9 @@ autocmd BufRead,BufNewFile *.tex set filetype=tex
|
|
|
|
|
autocmd VimLeave *.tex !texclear %
|
|
|
|
|
autocmd FileType tex inoremap ,ul \begin{itemize}<Enter><Enter>\end{itemize}<Enter><Enter><Esc>3kA\item<Space>
|
|
|
|
|
autocmd FileType tex inoremap ,li <Enter>\item<Space>
|
|
|
|
|
autocmd FileType tex inoremap ,sec \section{}<Enter><Enter><Esc>2kf}i
|
|
|
|
|
autocmd FileType tex inoremap ,ssec \subsection{}<Enter><Enter><Esc>2kf}i
|
|
|
|
|
autocmd FileType tex inoremap ,sssec \subsubsection{}<Enter><Enter><Esc>2kf}i
|
|
|
|
|
autocmd FileType tex inoremap ,sec \section*{}<Enter><Enter><Esc>2kf}i
|
|
|
|
|
autocmd FileType tex inoremap ,ssec \subsection*{}<Enter><Enter><Esc>2kf}i
|
|
|
|
|
autocmd FileType tex inoremap ,sssec \subsubsection*{}<Enter><Enter><Esc>2kf}i
|
|
|
|
|
|
|
|
|
|
" Compiler for languages
|
|
|
|
|
map <leader>c :w! \| !compiler <c-r>%<CR>
|
|
|
|
|