changing LaTeX nvim shotcuts

master
tiynger 5 years ago
parent c58ae5dd15
commit 0c443aa2eb

@ -39,11 +39,11 @@ autocmd BufRead,BufNewFile *.tex set filetype=tex
""" LATEX """ LATEX
" Clean LaTex build files " Clean LaTex build files
autocmd VimLeave *.tex !texclear % 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 ,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 ,li <Enter>\item<Space>
autocmd FileType tex inoremap ,sec \section{}<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 ,ssec \subsection{}<Enter><Enter><Esc>2kf}i
autocmd FileType tex inoremap ,sssec \subsubsection{}<Enter><Enter><++><Esc>2kf}i autocmd FileType tex inoremap ,sssec \subsubsection{}<Enter><Enter><Esc>2kf}i
" Compiler for languages " Compiler for languages
map <leader>c :w! \| !compiler <c-r>%<CR> map <leader>c :w! \| !compiler <c-r>%<CR>

Loading…
Cancel
Save