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
|
|
|
|
|
2016-10-05 00:32:06 +02:00
|
|
|
"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
|
|
|
|
|
2016-10-06 03:21:13 +02:00
|
|
|
"Auto indentation, just "za" needed
|
2016-10-05 00:32:06 +02:00
|
|
|
filetype indent on
|
|
|
|
|
2016-09-21 01:22:14 +02:00
|
|
|
" Set tabbing stuff
|
|
|
|
set tabstop=4
|
2017-08-26 13:30:58 +02:00
|
|
|
set softtabstop=4
|
2016-09-21 01:22:14 +02:00
|
|
|
set shiftwidth=4
|
|
|
|
set noexpandtab
|
|
|
|
|
2019-10-10 15:16:45 +02:00
|
|
|
" Show whitespace in characters (toggle with set list)
|
2022-01-25 10:34:38 +01:00
|
|
|
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
|
2022-03-30 18:59:39 +02:00
|
|
|
set showbreak=\\
|
2019-10-10 15:16:45 +02:00
|
|
|
|
2016-10-05 00:32:06 +02:00
|
|
|
"Folding
|
2016-10-06 03:21:13 +02:00
|
|
|
"augroup vimrc
|
|
|
|
" au BufReadPre * setlocal foldmethod=indent
|
|
|
|
" au BufWinEnter * if &fdm == 'indent' | setlocal foldmethod=manual | endif
|
|
|
|
"augroup END
|
2016-10-05 00:32:06 +02:00
|
|
|
|
2016-11-09 22:23:13 +01:00
|
|
|
" search for visually hightlighted text
|
2022-03-30 18:59:39 +02:00
|
|
|
vnoremap <c-f> y<ESC>/<c-r>"<CR>
|
2016-11-09 22:23:13 +01:00
|
|
|
|
2016-10-05 00:32:06 +02:00
|
|
|
set grepprg=grep\ -nH\ $*
|
2016-09-21 01:22:14 +02:00
|
|
|
|
2022-03-30 18:59:39 +02:00
|
|
|
" Disable any mousing
|
|
|
|
if has("mouse")
|
|
|
|
set mouse=
|
|
|
|
endif
|
|
|
|
|
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"
|