if v:progname =~? "evim" finish endif set nocompatible " vi-Kompatibilitaet aus filetype on filetype indent on filetype plugin on set encoding=iso-8859-15 set termencoding=iso-8859-15 set fileencodings=iso-8859-15 syntax on " Highlighting set ls=2 " Statuszeile set wrap " Zeilenumbruch am Rand des Terminals set history=999 "set cul " position highlighten set ruler " Positionsanzeige set number " Zeilennummern set incsearch " Livesuche set hlsearch " Suchergebnisse hervorheben set ignorecase " SuFu ingnoriert gr/kl set showtabline=2 " Tableiste immer anzeigen set wildmenu " Dateinamenvervollstaendigung set wildmode=list,longest set wildignore=*.pjs,*.ujs,*.C,*.o,*.utpl set directory=~/.tmp " swap-dir setzen set modeline " vim Kommandos einlesen, die in der Datei stehen set modelines=5 " ===== KEYS ===== " " Zeilennummern an und aus map :if &number \| set nonumber \| else \| set number \| endif " Tabs,EOL etc anzeigen set lcs=tab:».,nbsp:%,trail:« set list map :if &list \| set nolist \| else \| set list \| endif " Zeit einfuegen "imap =strftime("%d.%M.%Y, %H:%M:%S") " Tabs - new next prev (close) map :tabe "map :tabe \| NERDTreeMirror map :tabp map :tabn map :q " Backspace set backspace=indent,eol,start map ^H X " Pos1 map ^[[1~ ^ " End map ^[[4~ $ " Bild auf map ^[[5~ " Bild ab map ^[[6~ " ===== HIGHLIGHTING ===== " " *.tmp -s beim merge au BufNewFile,BufRead *.js.tmp set filetype=javascript au BufNewFile,BufRead *.cc.tmp set filetype=cpp au BufNewFile,BufRead *.h.tmp set filetype=cpp " Javascript au Syntax javascript source ~/.vim/syntax/js.vim " C++ au Syntax cpp source ~/.vim/syntax/cpp.vim " general (e.g. highlight trailing whitespace) au BufNewFile,BufRead * source ~/.vim/syntax/all.vim " Eingeruecktes in gelber Schrift auf schwarzem Grund hi Folded ctermfg=3 ctermbg=0 " ===== HTML ===== " :TOhtml let html_use_css = 1 let use_xhtml = 1 let html_ignore_folding = 1 " ===== EXTERNAL ===== " " from $VIMRUNTIME/vimrc_example.vim " Only do this part when compiled with support for autocommands. if has("autocmd") " Enable file type detection. " Use the default filetype settings, so that mail gets 'tw' set to 72, " 'cindent' is on in C files, etc. " Also load indent files, to automatically do language-dependent indenting. filetype plugin indent on " Put these in an autocmd group, so that we can delete them easily. augroup vimrcEx au! " For all text files set 'textwidth' to 78 characters. autocmd FileType text setlocal textwidth=78 " When editing a file, always jump to the last known cursor position. " Don't do it when the position is invalid or when inside an event handler " (happens when dropping a file on gvim). autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal! g`\"" | \ endif augroup END else set autoindent " always set autoindenting on endif