| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- " set the runtime path to include Vundle and initialize
- call plug#begin('~/.config/nvim/plugged')
- Plug 'Valloric/YouCompleteMe'
- Plug 'majutsushi/tagbar'
- Plug 'scrooloose/nerdtree'
- Plug 'tpope/vim-fugitive'
- Plug 'rust-lang/rust.vim'
- Plug 'airblade/vim-gitgutter'
- Plug 'mhinz/vim-startify'
- " Define runtime-path (rtp) if there is no explicit repo for vim
- Plug 'chriskempson/tomorrow-theme', {'rtp': 'vim/'}
- Plug 'altercation/vim-colors-solarized'
- Plug 'vim-airline/vim-airline'
- Plug 'vim-airline/vim-airline-themes'
- Plug 'terryma/vim-multiple-cursors'
- Plug 'suan/vim-instant-markdown'
- Plug 'tpope/vim-markdown'
- Plug 'KabbAmine/vCoolor.vim'
- Plug 'nvie/vim-flake8'
- Plug 'Raimondi/delimitMate'
- Plug 'SirVer/ultisnips'
- Plug 'rizzatti/dash.vim'
- Plug 'octol/vim-cpp-enhanced-highlight'
- Plug 'junegunn/goyo.vim'
- Plug 'junegunn/limelight.vim'
- Plug 'lervag/vimtex'
- Plug 'ap/vim-css-color'
- " Plug 'gilligan/vim-lldb'
- Plug 'atelierbram/vim-colors_atelier-schemes'
- Plug 'baeuml/summerfruit256.vim'
- Plug 'altercation/vim-colors-solarized'
- " All of your Plugins must be added before the following line
- call plug#end() " required
- "
- " U S E R S E T U P
- "
- " jump between split lines
- map j gj
- map k gk
- "map mapleader / to (german layout)
- let mapleader = ","
- " execute current file
- nnoremap <leader>e :!'%:p'<Enter>
- " Run `make` in current directory
- nnoremap <leader>m :!make<Enter>
- " open Nerdtree with CTRL+n
- map <C-n> :NERDTreeToggle<CR>
- " open Tagbar with CTRL+m
- map <C-m> :TagbarToggle<CR>
- " :w for :W
- command W w
- command Wq wq
- command Q q
- command Qa qa
- command WQ wq
- set ai " Set auto inline on
- set number " Show line numbers
- syntax on " Set syntax highlighting on
- set tabstop=4 " width of tab
- " should be redundant after tabstop and expandtab,
- " but vim-snipmate is messing up (?)
- set softtabstop=4
- 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
- set ignorecase " ignore case while searching
- " handling backupfiles
- set backupdir=~/.config/nvim/backup//
- set directory=~/.config/nvim/swap//
- set undodir=~/.config/nvim/undo//
- "Tomorrow color scheme
- colo Tomorrow-Night-Eighties
- hi clear SpellBad
- hi SpellBad cterm=undercurl ctermbg=none ctermfg=lightyellow
- " YCM Configuration
- " dont use python-mode autocomplete obsolete now, because of YCM
- let g:ycm_filetype_whitelist = {'cpp': 1, 'py': 1, 'python': 1, 'arduino': 1}
- " set ycm_extra_conf
- let g:ycm_global_ycm_extra_conf = '~/.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$']
- " vim-fugitive
- " gdiff vertical instead of horizontal
- set diffopt+=vertical
- " 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='<C-d>'
- let g:multi_cursor_prev_key='<C-p>'
- let g:multi_cursor_skip_key='<C-x>'
- let g:multi_cursor_quit_key='<Esc>'
- " configure UltiSnips
- let g:UltiSnipsExpandTrigger='<C-j>'
- let g:UltiSnipsJumpForwardTrigger='<C-j>'
- let g:UltiSnipsJumpBackwardTrigger='<C-k>'
- " vCoolor config
- let g:vcoolor_map = '<C-c>'
- 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
- " bind `,f` to Flake8
- nnoremap <leader>f :call Flake8()<CR>
- " instant markdown
- let g:instant_markdown_autostart = 0
- " activate mouse support
- set mouse=a
- set scrolloff=5
- " add some cpp-keywords
- syn keyword cppExceptions noexcept
- " allow mouse clicks to change cursor position
- set noequalalways
- " list whitespaces and some other characters
- set listchars=tab:>-,trail:~
- set list
- " use latex flavour for plaintex files
- let g:tex_flavour="latex"
|