From f7c34059e431e60a64da4ea6ec4ea3346e6a70ff Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Sat, 20 May 2017 18:04:56 +0200 Subject: [PATCH] Vim zeuch von Zeit an der Studienarbeit --- vim/.vimrc | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 051c086..50e4ad3 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -61,7 +61,7 @@ set tm=500 set encoding=utf8 "Always use utf8 set ffs=unix,dos,mac " Auto use EOL according to file set noswapfile -set expandtab "Tabbing +set noexpandtab " No spaces just Tabs set smarttab " Deleting and creating spaces representing tabs set ai "auto indent set si "smart indent @@ -95,6 +95,16 @@ set listchars=eol:↲,tab:▶▹,nbsp:␣,extends:…,trail:• " --- Latex {{{ au BufRead,BufNewFile *.tex set ft=tex +au FileType tex inoremap " " +au FileType tex inoremap ä "a +au FileType tex inoremap ö "o +au FileType tex inoremap ü "u +au FileType tex inoremap Ä "A +au FileType tex inoremap Ö "O +au FileType tex inoremap Ü "U +au FileType tex inoremap ß "s +au FileType tex inoremap "" \quot{}i + " }}} " --- Abbreviations {{{ @@ -191,7 +201,6 @@ nnoremap i :set list! " Vimux nnoremap rr :call RunCmdVimux() nnoremap rq :call VimuxCloseRunner() -nnoremap ; :call AddSemicolon() nnoremap t :g/TODO/ nnoremap :TigStatus " 0 should find first non blank @@ -215,7 +224,7 @@ nnoremap Q @@ inoremap nnoremap vnoremap -" -- Make Y behave correct +" -- Make Y behave correctly map Y y$ " -- Quick adding of spaces nnoremap il @@ -297,6 +306,7 @@ map F (easymotion-Fl) " --- Auto pairs config {{{ let g:lexima_enable_basic_rules = 1 " }}} -" --- Codestyle {{{ -au BufRead,BufNewFile *.{cpp,hpp,h} match ErrorMsg '\%>80v.\+' -" }}} + +set ts=4 +set noet +