White Theme and vim Wordbook
This commit is contained in:
@@ -4,6 +4,6 @@ setlocal spell spelllang=de_de
|
||||
" Begin Shortcuts
|
||||
|
||||
" Compilation
|
||||
map <C-c><C-c> <Esc>:RunBackgroundCommand pandoc <C-r>% --pdf-engine=xelatex -o <C-r>%<Del><Del>pdf<Enter>
|
||||
map <C-c><C-d> <Esc>:silent exec "!evince %<.pdf &"<Enter>
|
||||
map <C-c><C-c> <Esc>:RunBackgroundCommand pandoc <C-r>% --pdf-engine=xelatex -o <C-r>%<Del><Del>pdf<Enter>:redraw!
|
||||
map <C-c><C-d> <Esc>:silent exec "!evince <C-r>%<Del><Del>pdf &"<Enter>
|
||||
|
||||
|
||||
17
vim/.vim/ftplugin/python.vim
Normal file
17
vim/.vim/ftplugin/python.vim
Normal file
@@ -0,0 +1,17 @@
|
||||
" Python settings
|
||||
|
||||
|
||||
" Shortcuts
|
||||
imap <leader>ifm if<Space>__name__<Space>==<Space>'__main__':<Enter>
|
||||
|
||||
" Compiling
|
||||
map <C-c><C-c> <Esc>:!python %<Enter>
|
||||
|
||||
" Use the below highlight group when displaying bad whitespace is desired.
|
||||
highlight BadWhitespace ctermbg=red guibg=red
|
||||
|
||||
" Display tabs at the beginning of a line in Python mode as bad.
|
||||
au BufRead,BufNewFile *.py,*.pyw match BadWhitespace /^\t\+/
|
||||
|
||||
" Make trailing whitespace be flagged as bad.
|
||||
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
|
||||
@@ -4,13 +4,24 @@ setlocal spell spelllang=de_de
|
||||
map <C-B> YpkI\begin{<Esc>A}<Esc>jI\end{<Esc>A}<Esc>ko
|
||||
map! <C-B> <Esc>YpkI\begin{<Esc>A}<Esc>jI\end{<Esc>A}<Esc>ko
|
||||
|
||||
imap ;item \begin{itemize}<Enter>\end{itemize}<Esc>ko\item<Space>
|
||||
imap ;- \item
|
||||
imap ;it \begin{itemize}<Enter>\end{itemize}<Esc>k
|
||||
imap ;i \item{}<Space>
|
||||
imap "" "`"'<Esc>hha
|
||||
imap ;fp \begin{tabular}{ccc}<Enter>\toprule<Enter>Ja & Nein & Enthaltung \\ <Enter> \midrule<Enter> <x_x> & <x_x> & <x_x> \\<Enter>\bottomrule<Enter>\end{tabular}<Esc>0kk<Space><Tab>
|
||||
|
||||
" Surround stuff
|
||||
vmap <C-B> da\textbf{<C-R>"}<Esc>
|
||||
vmap <C-L> da\underline{<C-R>"}<Esc>
|
||||
vmap <C-I> da\textit{<C-R>"}<Esc>
|
||||
vmap <C-E> da\emph{<C-R>"}<Esc>
|
||||
vmap ( da(<C-R>")<Esc>
|
||||
vmap "" da"`<C-R>""'<Esc>
|
||||
|
||||
|
||||
":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
|
||||
map <C-c><C-c> <Esc>:RunBackgroundCommand pdflatex -interaction nonstopmode <C-r>%<Enter>
|
||||
map <C-c><C-d> <Esc>:silent exec "!evince %<.pdf &"<Enter>
|
||||
map <C-c><C-c> <Esc>:RunBackgroundCommand latexmk -pdf -silent <C-r>%<Enter>:redraw!<Enter>
|
||||
map <C-c><C-v> <Esc>:RunBackgroundCommand latexmk -c<Enter>
|
||||
map <C-c><C-d> <Esc>:silent exec "!evince <C-r>%<Del><Del><Del>pdf &>/dev/null &"<Enter>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user