" ======================================================= " GENERAL " ======================================================= " load the pathogen-style plugins call pathogen#runtime_append_all_bundles() call pathogen#helptags() " Colorscheme colorscheme desert " Filetype filetype indent on filetype plugin on " More general stuff set nu set fenc=utf-8 set modeline set ts=4 set sw=4 set sts=4 set expandtab set guifont=Inconsolata\ Medium\ 11,Monospace\ 11 set spelllang=de_20 if has("gui_running") " nice cursorline in the gui set cursorline else " explicitly disable it all else set nocursorline endif let mapleader = "," let maplocalleader = "\\" let &guicursor = &guicursor . ",a:blinkon0" " statusline set laststatus=2 " always show line set statusline=%-3.3n\ %f\ %r%w[%{strlen(&ft)?&ft:'none'},%{strlen(&fenc)?&fenc:&enc.'\ (G)'},%{&fileformat}]%m%=%-14.(%l,%c%V%)%<%P " ======================================================= " COMPLETION " ======================================================= " Omnicomplete autocmd FileType python set omnifunc=pythoncomplete#Complete " nothing set for C/C++ -- done by the autoload feature set completeopt=longest,menu,preview set tags+=~/.vim/tags for tag in split(glob("~/.vim/tags.d/*"), "\n") let &tags .= "," . tag endfor " Allow Return to select a match inoremap pumvisible() ? "\" : "\u\" " pydiction let g:pydiction_location = '~/.vim/pydiction/complete-dict' " ======================================================= " COMPLETION FOR CMDLINE " ======================================================= " enable nice menu set wildmenu " do not use Left and Right for switching between completions, " but for cursor positioning cnoremap cnoremap " ======================================================= " CUSTOM MAPPINGS " ======================================================= " Some maps map :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q . nmap :Tlist nmap :TlistUpdate nmap :ls:buf map :GundoToggle map gt map gT imap map :make " Makes more sense and is similar to D map Y y$ " Haskell GHCi stuff autocmd FileType haskell nmap gi :GHCi autocmd FileType haskell nmap gr :GHCReload " ======================================================= " PLUGINS AND LANGUAGES " ======================================================= " Stuff for the TagList-Plugin let Tlist_Sort_Type = "name" let Tlist_File_Fold_Auto_Close = 1 let Tlist_Exit_OnlyWindow = 1 " Stuff for the NERD Tree Plugin let NERDTreeWinPos = 0 "have it on the right site " Autotag -- correct C++ handling let g:autotagCtagsCmd="ctags --c++-kinds=+p --fields=+iaS --extra=+q" " stuff for gentoo syntax let g:bugsummary_browser="firefox %s" " for toggling in python let g:toggle_words_dict = {'python': [['if', 'elif', 'else'], ['True','False']]} let python_highlight_numbers = 1 let python_highlight_space_errors = 1 " default to latex for .tex files let g:tex_flavor = "latex" " do not do concealment in .tex files -- just too slow (and ugly) let g:tex_conceal = "" " haskell stuff au BufEnter *.hs compiler ghc let g:haddock_browser = "/home/necoro/bin/openlink" let g:haddock_indexfiledir = "/home/necoro/.cache/vim/" " ======================================================= " FINAL " ======================================================= " turn of any existing search if has("autocmd") au VimEnter * nohls endif