1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-11-18 01:13:31 +01:00
dotfiles/vim/vimrc

39 lines
792 B
VimL
Raw Normal View History

2016-09-21 01:22:14 +02:00
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
filetype plugin on
"Load LaTex-Suite on empty tex files
let g:tex_flavor='latex'
2016-09-21 01:22:14 +02:00
if &term=="xterm"
set t_Co=8
set t_Sb=^[[4%dm
set t_Sf=^[[3%dm
endif
"Auto indentation
filetype indent on
2016-09-21 01:22:14 +02:00
" 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\ $*
2016-09-21 01:22:14 +02:00
" Don't wake up system with blinking cursor:
" http://www.linuxpowertop.org/known.php
let &guicursor = &guicursor . ",a:blinkon0"