" vim70 " no complete vi compatibility set nocp " enable syntax-highlighting syntax enable "colorscheme torte colorscheme solarized "set background=dark colorscheme molokai let g:molokai_original = 1 " options: 'f' {{{ " enable filetype-detection filetype on " load filetype plugin, if a available filetype plugin on " }}} set backup set backupdir=$HOME/tmp/,/tmp " dis/enable listchars set list set nolist " chars to replace set listchars=tab:»- " C - Style (smart)indenting ... to set with Autocmd for *.{h,c,cpp,...}? set smartindent " maximum charactes per line set tw=78 " test tab settings set noet " review set ts=2 " review set sw=2 " review set expandtab " TAB == n * whitespace set vb t_vb= " simply paste things under X via middle-mouse-button set mouse= " show last status: always ( takes extra line ) set laststatus=2 set stl=\ \ [TYPE:%Y]\ \ %f\ \ [X:%v,Y:%l][%p%%]%=[%{strftime(\"%Y/%m/%d\")}]\ \ " mappings {{{ if maparg("") == "" map :w:! rm -f %< :! gcc -g -o %< % endif if has("unix") map ,e :e =expand("%:p:h") . "/" else map ,e :e =expand("%:p:h") . "\" endif " jump to 'old' position map ,o " insert now-playing info nmap ,np k:r!np -u " }}} set fdm=marker " recheck twice below: " set completeopt=menu let OmniCpp_ShowScopeInAbbr = 1 let OmniCpp_MayCompleteScope = 1 " would-be-cool: if {PWD}/.tags exists, use them *exclusively* "set tags+=~/.vim/systags set tags=./tags set ic " review smartcase! set nohls " review " templates {{{ :autocmd BufNewFile *.sh 0r ~/.vim/templates/template.sh :autocmd BufNewFile *.c 0r ~/.vim/templates/template.c " }}} iab func() function func() { # {{{} # }}} iab \begin{itemize} \begin{itemize}\end{itemize} iab \begin{frame} \begin{frame}\end{frame} iab tmpMT # Maintainer: Thomas Penteker, tek at serverop dot de au BufNewFile,BufRead *tex iab --> $\rightarrow$ au BufNewFile,BufRead *tex iab <-- $\leftarrow$ au BufNewFile,BufRead *tex iab <--> $\leftrightarrow$ " recheck help hi au VimEnter * echo "Knock, knock, Neo" au BufRead mutt* set tw=78 au BufRead mutt* normal :g/^> -- $/,/^$/-1d^M/^$^M^L " jump to first empty line au BufRead mutt* /^$ au VimEnter,BufNewFile mutt* echo "*narf*" au BufNewFile,BufRead *Pkgfile set filetype=sh au BufRead *.tpl set tw=0 au BufRead *.css set tw=0 au BufRead *.tex set tw=0 au BufRead *.html set tw=0 "au BufRead *.tex imap ue ü "au BufRead *.tex imap Ue Ü "au BufRead *.tex imap oe ö "au BufRead *.tex imap Oe Ö "au BufRead *.tex imap ae ä "au BufRead *.tex imap Ae Ä "au BufRead *.tex imap sz ß " I don't want to see TABs in Makefiles au BufRead Makefile set nolist au BufRead *.java set nolist " Try to autocomplete with 'omni completion' on TAB function! CleverTab() " {{{ if strpart( getline('.'), 0, col('.')-1 ) =~ '^\s*$' return "\" else return "\\" endfunction " }}} " inoremap =CleverTab() func! Umlaute() " {{{ exec "%s/ae/ä/g" exec "%s/oe/ö/g" exec "%s/ue/ü/g" exec "%s/sz/ß/g" exec "%s/Ae/Ä/g" exec "%s/Oe/Ö/g" exec "%s/Ue/Ü/g" endfunc " }}} imap :call Umlaute()