" vim: set fdm=marker fdc=3 : " vim config dir path if has("win32") let g:vimdir=expand('~/vimfiles/') else let g:vimdir=expand('~/.vim/') endif " load plugins using vundle {{{ if has("win32") source ~/vimfiles/plug.vim else source ~/.vim/plug.vim endif " }}} " set colorscheme {{{ if &term =~# '^\(screen\|xterm\)' set t_Co=256 let g:solarized_termcolors=256 endif if (&t_Co >= 255 && &term !~ '^linux$') || has("gui_running") colorscheme wombat256_thomasba else colorscheme elflord2 endif " }}} " GUI settings {{{ if has('gui_running') " Make shift-insert work like in Xterm map map! set guifont="Monospace 10" " Nooo, dont blink!! set guicursor=a:blinkon0 endif " }}} " editor settings {{{ syntax on filetype plugin indent on " delete always on backspace set backspace=indent,eol,start set hidden set number set numberwidth=4 set shiftwidth=4 set ruler set showmode set noexrc set noerrorbells set nobackup set wrap set ts=4 set diffopt+=iwhite set history=50 set showcmd set showmatch set smartcase set ignorecase set title set ttyfast set hlsearch set spelllang=de_de,en set copyindent " }}} " move by screen lines, not by real lines - great for creative writing {{{ nnoremap j gj nnoremap k gk nnoremap gk nnoremap gj " also in visual mode vnoremap j gj vnoremap k gk vnoremap gk vnoremap gj " }}} " fileencoding {{{ set encoding=utf-8 set fileencodings=ucs-bom,utf-8,latin,windows-1252 " }}} " TOhtml settings {{{ let g:html_prevent_copy = "fn" let html_use_xhtml=1 let html_use_css=1 " }}} " slightly highlight rows and columns {{{ "set cursorline "set cursorcolumn " }}} " mail {{{ augroup mail autocmd! autocmd FileType mail set textwidth=70 wrap fo=tcrq augroup END " }}} " auto completion and menu {{{ if has("wildmenu") set wildignore+=*.a,*.o set wildignore+=.DS_Store,.git,.hg,.svn set wildignore+=*~,*.swp,*.tmp set wildmenu set wildmode=list,longest,full inoremap endif " }}} " plugins {{{ " syntastic {{{ let g:syntastic_always_populate_loc_list = 1 let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0 let g:syntastic_perl_checkers = ['perl'] let g:syntastic_enable_perl_checker = 1 let g:syntastic_python_checkers = ['pylint'] let g:syntastic_python_pylint_args = '--indent-string="\t"' let g:syntastic_php_checkers = ['php'] let g:syntastic_html_tidy_ignore_errors = ['warning:
proprietary attribute "data-role"', ' proprietary attribute "required"', ' proprietary attribute "pattern"', '