48 lines
1.1 KiB
VimL
48 lines
1.1 KiB
VimL
|
|
" No Compatibility. That just sucks
|
||
|
|
" especially annoying on redhat/windows/osx
|
||
|
|
set nocompatible
|
||
|
|
set backspace=indent,eol,start
|
||
|
|
|
||
|
|
" My PC is fast enough, do syntax highlight syncing from start
|
||
|
|
autocmd BufEnter * :syntax sync fromstart
|
||
|
|
|
||
|
|
" Some File Type Stuff
|
||
|
|
" --------------------
|
||
|
|
" Enable filetype plugins and indention
|
||
|
|
filetype on
|
||
|
|
filetype plugin on
|
||
|
|
|
||
|
|
" Enable Syntax Colors
|
||
|
|
" --------------------
|
||
|
|
" in GUI mode we go with fruity and Monaco 12
|
||
|
|
" in CLI mode desert looks better (fruity is GUI only)
|
||
|
|
syntax on
|
||
|
|
if has("gui_running")
|
||
|
|
colorscheme industry
|
||
|
|
" set guifont=Monaco:h12
|
||
|
|
else
|
||
|
|
colorscheme desert
|
||
|
|
endif
|
||
|
|
|
||
|
|
" Automatische Einrückung (Globale Konfiguration)
|
||
|
|
set smartindent
|
||
|
|
set smarttab
|
||
|
|
|
||
|
|
" UTF-8 als Default-Encoding
|
||
|
|
set enc=utf-8
|
||
|
|
|
||
|
|
" Ein Tab entspricht vier Leerzeichen (wie in PEP 8 definiert)
|
||
|
|
" Dies aber nur für python, damit es nicht mit anderen (ruby, c, Makefiles) kollidiert
|
||
|
|
autocmd FileType python setlocal expandtab shiftwidth=4 tabstop=4 softtabstop=4
|
||
|
|
|
||
|
|
" enable mouse
|
||
|
|
set mouse=nvc
|
||
|
|
|
||
|
|
" systags
|
||
|
|
set ofu=syntaxcomplete#Complete
|
||
|
|
set tags+=~/.vim/systags
|
||
|
|
|
||
|
|
" relativenumber
|
||
|
|
set relativenumber
|
||
|
|
set number
|