" Using vundle: just git clone https://github.com/gmarik/Vundle.vim.git " ~/.vim/bundle/Vundle.vim set nocompatible " be iMproved, required filetype off " required " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " let Vundle manage Vundle, required Plugin 'gmarik/Vundle.vim' Plugin 'Valloric/YouCompleteMe' Plugin 'majutsushi/tagbar' Plugin 'scrooloose/nerdtree' Plugin 'tpope/vim-fugitive' Plugin 'rust-lang/rust.vim' Plugin 'airblade/vim-gitgutter' Plugin 'mhinz/vim-startify' " Define runtime-path (rtp) if there is no explicit repo for vim Plugin 'chriskempson/tomorrow-theme', {'rtp': 'vim/'} Plugin 'altercation/vim-colors-solarized' Plugin 'bling/vim-airline' Plugin 'terryma/vim-multiple-cursors' Plugin 'suan/vim-instant-markdown' Plugin 'tpope/vim-markdown' Plugin 'KabbAmine/vCoolor.vim' Plugin 'nvie/vim-flake8' Plugin 'Raimondi/delimitMate' Plugin 'SirVer/ultisnips' " all three following plugins are needed for vim-snipmate "Bundle "MarcWeber/vim-addon-mw-utils" "Bundle "tomtom/tlib_vim" "Bundle "garbas/vim-snipmate" " All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required " U S E R S E T U P "set right encoding set encoding=utf-8 set fileencoding=utf-8 " jump between split lines map j gj map k gk "map mapleader / to (german layout) let mapleader = "," "execute current file nnoremap e :!%:p "open Nerdtree with CTRL+n map :NERDTreeToggle "open Tagbar with CTRL+m map :TagbarToggle " :w for :W command W w command Wq wq command Q q command WQ wq "configure for guivim if its active if has("gui_macvim") set guifont=Meslo\ LG\ M\ for\ Powerline:h13 endif set ai "Set auto inline on set number "Show line numbers syntax on "Set syntax highlighting on set tabstop=4 " width of tab set softtabstop=4 "should be redundant after tabstop and expandtab, but vim-snipmate is messing up (?) set shiftwidth=4 set expandtab " use 'tabstop' spaces instead of tab set colorcolumn=80 " Bar hinting for 80 chars set breakindent "baby, yeah! set mouse=a " activate mouse support "Tomorrow color scheme colo Tomorrow-Night-Eighties " YCM Configuration " dont use python-mode autocomplete obsolete now, because of YCM let g:ycm_filetype_whitelist = {'cpp': 1, 'py': 1, 'arduino': 1} " set ycm_extra_conf let g:ycm_global_ycm_extra_conf = '~/.vim/ycm.py' " turn off the ycm diagnostic because of struggling with root "let g:ycm_show_diagnostics_ui = 0 " NERDTree Configuration " hide some fileextenxions let NERDTreeIgnore = ['\.pyc$'] " Airline stuff set laststatus=2 let g:airline_powerline_fonts = 1 let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#buffer_nr_show = 1 " multiple-cursors mapping let g:multi_cursor_use_default_mapping=0 let g:multi_cursor_next_key='' let g:multi_cursor_prev_key='' let g:multi_cursor_skip_key='' let g:multi_cursor_quit_key='' " configure UltiSnips let g:UltiSnipsExpandTrigger='' let g:UltiSnipsJumpForwardTrigger='' let g:UltiSnipsJumpBackwardTrigger='' let g:UltiSnipsSnippetsDir='~/.vim/snippets' " vCoolor config let g:vcoolor_map = '' let g:vcool_ins_rgb_map = '' " Insert rgb color. let g:vcool_ins_hsl_map = '' " Insert hsl color. let g:vcool_ins_rgba_map = '' " Insert rgba color. " configure flake8 " autorun flake on save autocmd BufWritePost *.py call Flake8() " instant markdown let g:instant_markdown_autostart = 0 " activate mouse support set mouse=a