mirror of
https://github.com/kastdeur/dotfiles.git
synced 2025-05-14 20:09:26 +02:00
Added vim plugin + autoindent\n use vi if vim is typed and not available
This commit is contained in:
parent
ef8bf8ac54
commit
061f80b9b9
144 changed files with 30057 additions and 0 deletions
13
vim/vimrc
13
vim/vimrc
|
@ -7,18 +7,31 @@ endif
|
|||
|
||||
filetype plugin on
|
||||
|
||||
"Load LaTex-Suite on empty tex files
|
||||
let g:tex_flavor='latex'
|
||||
|
||||
if &term=="xterm"
|
||||
set t_Co=8
|
||||
set t_Sb=^[[4%dm
|
||||
set t_Sf=^[[3%dm
|
||||
endif
|
||||
|
||||
"Auto indentation
|
||||
filetype indent on
|
||||
|
||||
" Set tabbing stuff
|
||||
set autoindent
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set noexpandtab
|
||||
|
||||
"Folding
|
||||
augroup vimrc
|
||||
au BufReadPre * setlocal foldmethod=indent
|
||||
au BufWinEnter * if &fdm == 'indent' | setlocal foldmethod=manual | endif
|
||||
augroup END
|
||||
|
||||
set grepprg=grep\ -nH\ $*
|
||||
|
||||
" Don't wake up system with blinking cursor:
|
||||
" http://www.linuxpowertop.org/known.php
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue