mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-12-22 01:03:35 +01:00
54 lines
1.2 KiB
VimL
54 lines
1.2 KiB
VimL
" 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'
|
|
|
|
if &term=="xterm"
|
|
set t_Co=8
|
|
set t_Sb=^[[4%dm
|
|
set t_Sf=^[[3%dm
|
|
endif
|
|
|
|
"Auto indentation, just "za" needed
|
|
filetype indent on
|
|
|
|
" Set tabbing stuff
|
|
set tabstop=4
|
|
set softtabstop=4
|
|
set shiftwidth=4
|
|
set noexpandtab
|
|
|
|
" Show whitespace in characters (toggle with set list)
|
|
if has("patch-7.4.710")
|
|
set listchars=tab:→\ ,space:·,nbsp:␣,trail:•,eol:¶,precedes:«,extends:»
|
|
else
|
|
set listchars=tab:→\ ,nbsp:␣,trail:•,eol:¶,precedes:«,extends:»
|
|
endif
|
|
set showbreak=\\
|
|
|
|
"Folding
|
|
"augroup vimrc
|
|
" au BufReadPre * setlocal foldmethod=indent
|
|
" au BufWinEnter * if &fdm == 'indent' | setlocal foldmethod=manual | endif
|
|
"augroup END
|
|
|
|
" search for visually hightlighted text
|
|
vnoremap <c-f> y<ESC>/<c-r>"<CR>
|
|
|
|
set grepprg=grep\ -nH\ $*
|
|
|
|
" Disable any mousing
|
|
if has("mouse")
|
|
set mouse=
|
|
endif
|
|
|
|
" Don't wake up system with blinking cursor:
|
|
" http://www.linuxpowertop.org/known.php
|
|
let &guicursor = &guicursor . ",a:blinkon0"
|