2018-10-03 18:39:19 +02:00
|
|
|
setlocal spell spelllang=de_de
|
|
|
|
|
|
|
|
" Begin Shortcuts
|
2019-07-25 09:51:54 +02:00
|
|
|
noremap <C-B> YpkI\begin{<Esc>A}<Esc>jI\end{<Esc>A}<Esc>ko
|
|
|
|
noremap! <C-B> <Esc>YpkI\begin{<Esc>A}<Esc>jI\end{<Esc>A}<Esc>ko
|
2018-10-03 18:39:19 +02:00
|
|
|
|
2020-01-04 08:42:48 +01:00
|
|
|
inoremap ;it \begin{itemize}<CR>\end{itemize}<Esc>k
|
2019-07-25 09:51:54 +02:00
|
|
|
inoremap ;i \item{}<Space>
|
|
|
|
inoremap "" "`"'<Esc>hha
|
2020-01-04 08:42:48 +01:00
|
|
|
inoremap ;fp \begin{tabular}{ccc}<CR>\toprule<CR>Ja & Nein & Enthaltung \\ <CR> \midrule<CR> <x_x> & <x_x> & <x_x> \\<CR>\bottomrule<CR>\end{tabular}<Esc>0kk<Space><Tab>
|
2019-11-25 17:58:42 +01:00
|
|
|
inoremap ;sec \section{}<Esc>i
|
|
|
|
inoremap ;ssec \subsection{}<Esc>i
|
|
|
|
inoremap ;sssec \subsubsection{}<Esc>i
|
2018-11-20 15:13:51 +01:00
|
|
|
|
|
|
|
" Surround stuff
|
2019-07-25 09:51:54 +02:00
|
|
|
vnoremap <C-B> da\textbf{<C-R>"}<Esc>
|
|
|
|
vnoremap <C-L> da\underline{<C-R>"}<Esc>
|
|
|
|
vnoremap <C-I> da\textit{<C-R>"}<Esc>
|
|
|
|
vnoremap <C-E> da\emph{<C-R>"}<Esc>
|
|
|
|
vnoremap ( da(<C-R>")<Esc>
|
|
|
|
vnoremap "" da"`<C-R>""'<Esc>
|
2018-11-20 15:13:51 +01:00
|
|
|
|
2018-10-03 18:39:19 +02:00
|
|
|
|
|
|
|
":command! -complete=file -nargs=1 Rpdf :r !pdftotext -nopgbrk <q-args> -
|
|
|
|
":command! -complete=file -nargs=1 Rpdf :r !pdftotext -nopgbrk <q-args> - | fmt -csw78
|
|
|
|
" Compilation
|
2020-01-20 01:04:10 +01:00
|
|
|
noremap <C-c><C-c> <Esc>:!latexmk -pdf -silent "<C-r>%" &>/dev/null & disown <CR>:redraw!<CR><CR>
|
|
|
|
noremap <C-c><C-v> <Esc>:!latexmk -c &>/dev/null & disown <CR><CR>
|
2020-11-12 18:20:18 +01:00
|
|
|
noremap <C-c><C-d> <Esc>:!zathura <C-r>%<Del><Del><Del>pdf &>/dev/null & disown <CR><CR>
|
2018-10-03 18:39:19 +02:00
|
|
|
|