Vim zeuch von Zeit an der Studienarbeit
This commit is contained in:
parent
c0204a32a5
commit
f7c34059e4
1 changed files with 16 additions and 6 deletions
22
vim/.vimrc
22
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 <buffer> " "
|
||||
au FileType tex inoremap <buffer> ä "a
|
||||
au FileType tex inoremap <buffer> ö "o
|
||||
au FileType tex inoremap <buffer> ü "u
|
||||
au FileType tex inoremap <buffer> Ä "A
|
||||
au FileType tex inoremap <buffer> Ö "O
|
||||
au FileType tex inoremap <buffer> Ü "U
|
||||
au FileType tex inoremap <buffer> ß "s
|
||||
au FileType tex inoremap <buffer> "" \quot{}<Esc>i
|
||||
|
||||
" }}}
|
||||
|
||||
" --- Abbreviations {{{
|
||||
|
@ -191,7 +201,6 @@ nnoremap <silent> <leader>i :set list!<cr>
|
|||
" Vimux
|
||||
nnoremap <leader>rr :call RunCmdVimux()<cr>
|
||||
nnoremap <leader>rq :call VimuxCloseRunner()<cr>
|
||||
nnoremap <silent> ; :call AddSemicolon()<cr>
|
||||
nnoremap <silent> <leader>t :g/TODO/<cr>
|
||||
nnoremap <silent> <C-G> :TigStatus<CR>
|
||||
" 0 should find first non blank
|
||||
|
@ -215,7 +224,7 @@ nnoremap Q @@
|
|||
inoremap <F1> <nop>
|
||||
nnoremap <F1> <nop>
|
||||
vnoremap <F1> <nop>
|
||||
" -- Make Y behave correct
|
||||
" -- Make Y behave correctly
|
||||
map Y y$
|
||||
" -- Quick adding of spaces
|
||||
nnoremap <silent> <space> i<space><Esc>l
|
||||
|
@ -297,6 +306,7 @@ map F <Plug>(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
|
||||
|
||||
|
|
Loading…
Reference in a new issue