" =============Plugins================== call plug#begin() Plug 'morhetz/gruvbox' Plug 'tomtom/tcomment_vim' Plug 'bling/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } Plug 'tpope/vim-fugitive' Plug 'airblade/vim-gitgutter' Plug 'Shougo/neosnippet.vim' Plug 'honza/vim-snippets' Plug 'vim-scripts/a.vim' Plug 'luochen1990/rainbow' call plug#end() " =============Settings================== filetype plugin on filetype indent on set nocompatible set ignorecase " Case sensitive off set incsearch set encoding=utf-8 set nobackup set noswapfile set mouse=a set spelllang=en,de set spellsuggest=double,10 set list set icon set listchars=tab:>.,trail:.,extends:#,nbsp:. set showmatch " Show pair braces set hlsearch "Highlight search syntax on set number set scrolloff=2 if has("win32") " set rop=type:directx let g:loaded_matchparen = 1 end " =================Look and feel======================= set background=dark colorscheme gruvbox " =================Windows and Tabs==================== " Open a new tab with F2 map :tabnew :Explore imap :tabnew :Explore map :tabnext map :tabprevious nmap :wincmd k nmap :wincmd j nmap :wincmd h nmap :wincmd l " Open a new vertical split window with Ctrl - F2 map :vsplit . imap :vsplit . " Open a new horizontal split window with Shift - F2 map :split . imap :split . " ========================Codestyle======================== set tabstop=2 " Size of a tab set shiftwidth=2 " Die Einrückung set expandtab "Tabs get spaces when inserting set softtabstop=0 "set autoindent "alignment ansi style (astyle) set cindent " C-Code Style / Automatische Einrückung set cinoptions=(0,u0,U0,:0,=0 "Einrückung wie bei astyle: :0 (switch), =0 (case), (0 (unclosed parentheses), set modeline "Read indent comments (at end of file) " ======================shortcut======================= map :wa imap :wa "Jump to last modification line map ö `. nnoremap ü :let @/='\<=expand("")\>':set hls " =================Comments============================ map :TComment " =================Python============================== if has("win32") let g:python3_host_prog="f:\\Tools\\Python\\python.exe" let g:python_host_prog="f:\\Tools\\Python27\\python.exe" end " =========================Deoplete==================== let g:deoplete#enable_at_startup = 1 " =========================neosnippet================== " " Enable snipMate compatibility feature. let g:neosnippet#enable_snipmate_compatibility = 1 " Tell Neosnippet about the other snippets let g:neosnippet#snippets_directory='~/.vim/bundle/vim-snippets/snippets' imap neosnippet#expandable_or_jumpable() ? "\(neosnippet_expand_or_jump)" : pumvisible() ? "\" : "\" smap neosnippet#expandable_or_jumpable() ? "\(neosnippet_expand_or_jump)" : "\" " =====================A====================== " Function for switching between header and c* files map :wa :A imap :wa:Ai map :AV imap :AVi map :AT imap :ATi let g:alternateSearchPath = 'sfr:../source,sfr:../src,sfr:../include,../../include,sfr:../inc,sfr:../h' " Dont create the file if the .cpp or .h is not found let g:alternateNoDefaultAlternate = 1 " ===========RAINBOW==================== let g:rainbow_active = 1 let g:rainbow_conf = { \'separately': { \ 'cmake': { \ 'parentheses': [], \ }, \} \}