changing shortcuts for latex to non indexed sections

master
tiynger 5 years ago
parent 1100e2801d
commit 7569a2c7fe

@ -41,9 +41,9 @@ autocmd BufRead,BufNewFile *.tex set filetype=tex
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