Last active
August 26, 2020 20:18
-
-
Save Marc-Bender/e419a6eecc91c63e42b60abdd229ea20 to your computer and use it in GitHub Desktop.
Vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nu rnu nocompatible incsearch ignorecase title foldcolumn=4 | |
inoremap <C-A> <C-O>gg<C-O>V<C-O>G | |
nnoremap <C-A> ggVG | |
inoremap <C-BS> <C-W> | |
vnoremap <silent> <Leader>s :sort<CR> | |
nnoremap <silent> WW :wa <Enter> | |
nnoremap <F2>L :source ~/.vimrc-latex<CR> | |
nnoremap <F2>C :source ~/.vimrc-C<CR> | |
nnoremap <F2>UC :source ~/.vimrc-unmapC<CR> | |
nnoremap <F2>UL :source ~/.vimrc-unmapLatex<CR> | |
inoremap <F8>i <##??##> | |
nnoremap <F8>r /<##??##>/g<CR>:noh<CR>vf>c | |
inoremap <F8>r <Esc>/<##??##>/g<CR>:noh<CR>vf>c | |
nnoremap <Leader>a Go | |
nnoremap <Leader>p ggO | |
nnoremap <silent> <F12> :noh <CR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imap <Leader>} {<CR><Tab><CR>}<Up><Right> | |
imap <Leader>}} {}<Left> | |
imap <Leader>S switch(<##??##>)<CR>{<CR><Tab>case <##??##> : <CR><Tab>{<CR><Tab><##??##><CR>}<CR>}<CR><Up><C-O><<<C-O><< | |
imap <Leader>TDS typedef struct<CR>{<CR><Tab><##??##><CR>}<C-O><<<CR><##??##>;<CR> | |
imap <Leader>TDE typedef enum<CR>{<CR><Tab><##??##><CR>}<C-O><<<CR><##??##>;<CR> | |
imap <Leader>TDU typedef union<CR>{<CR><Tab><##??##><CR>}<C-O><<<CR><##??##>;<CR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map <silent> <F5> <Esc><Esc>:!zathura master.pdf& disown<Enter><Enter> | |
map <silent> <F4> <Esc><Esc>:!evince master.pdf& disown<Enter><Enter> | |
map <silent> <F6> <Esc><Esc>:!start /b "" "C:/Program Files (x86)/Adobe/Acrobat Reader DC/Reader/acrord32.exe" master.pdf<Enter><Enter> | |
map <silent> <F7> <Esc><Esc>:!start /b "" "C:/Users/Marc/Downloads/mupdf.exe" master.pdf<Enter><Enter> | |
nmap <Leader>p :!latex master.tex && dvipdfm master.dvi<CR><CR> | |
nmap <Leader>P :!latex master.tex && bibtex master.aux && dvipdfm master.dvi<CR><CR> | |
imap <Leader>B \begin{}<Left> | |
imap <Leader>E \end{}<Left> | |
imap <Leader>" \inQuotes{}<Left> | |
imap <Leader>I \item | |
imap <Leader>R \ref{}<Left> | |
imap <Leader>FN \footnote{}<Left> | |
imap <Leader>FC \footcite{<##??##>}<Esc>?\footcite<CR>:noh<CR> | |
imap <Leader>FCT \footcite[<##??##>]{<##??##>}<Esc>?\footcite<CR>:noh<CR> | |
imap <Leader>CG \citeGit{<##??##>}{<##??##>}<Esc>?\citeGit<CR>:noh<CR> | |
imap <Leader>CGT \citeGit[<##??##>]{<##??##>}{<##??##>}<Esc>?\citeGit<CR>:noh<CR> | |
imap <Leader>CI \lstinline[language=C, style=Cstyle]{}<Left> | |
imap <Leader>IC \inputCCode{<##??##>}{<##??##>}{<##??##>}{<##??##>}<Left> | |
imap <Leader>ICR \inputCCodeRanges{<##??##>}{<##??##>}{<##??##>}<Left> | |
imap <Leader>L \label{}<Left> | |
imap <Leader>} {}<Left> | |
imap <Leader>S \slash{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iunmap <Leader>} | |
iunmap <Leader>}} | |
iunmap <Leader>S | |
iunmap <Leader>TDS | |
iunmap <Leader>TDE | |
iunmap <Leader>TDU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nunmap <Leader>p | |
nunmap <Leader>P | |
iunmap <Leader>B | |
iunmap <Leader>E | |
iunmap <Leader>" | |
iunmap <Leader>I | |
iunmap <Leader>R | |
iunmap <Leader>FN | |
iunmap <Leader>FC | |
iunmap <Leader>FCT | |
iunmap <Leader>CG | |
iunmap <Leader>CGT | |
iunmap <Leader>CI | |
iunmap <Leader>IC | |
iunmap <Leader>ICR | |
iunmap <Leader>L | |
iunmap <Leader>} | |
iunmap <Leader>S |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment