dotfiles/.vimrc

127 lines
3.4 KiB
VimL
Raw Normal View History

2018-01-29 13:50:57 +01:00
set nocompatible
filetype off
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" load sensible defaults first
Plugin 'tpope/vim-sensible'
Plugin 'airblade/vim-gitgutter'
2018-01-29 13:50:57 +01:00
Plugin 'altercation/vim-colors-solarized'
2020-01-17 08:17:10 +01:00
Plugin 'Chiel92/vim-autoformat'
Plugin 'deoplete-plugins/deoplete-clang'
Plugin 'deoplete-plugins/deoplete-docker'
Plugin 'deoplete-plugins/deoplete-jedi'
2019-04-03 13:18:46 +02:00
Plugin 'ludovicchabant/vim-gutentags'
Plugin 'mhinz/vim-startify'
2019-03-28 15:39:31 +01:00
Plugin 'sakhnik/nvim-gdb'
Plugin 'scrooloose/nerdtree'
2020-01-17 08:17:10 +01:00
Plugin 'Shougo/deoplete.nvim'
Plugin 'Shougo/neoinclude.vim'
Plugin 'sheerun/vim-polyglot'
Plugin 'suan/vim-instant-markdown'
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-sleuth'
2019-01-17 08:06:18 +01:00
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'wincent/terminus'
2019-12-14 06:11:07 +01:00
Plugin 'wokalski/autocomplete-flow'
2020-01-17 08:17:10 +01:00
Plugin 'Xuyuanp/nerdtree-git-plugin'
2019-12-14 06:11:07 +01:00
if !has('nvim')
Plugin 'roxma/nvim-yarp'
Plugin 'roxma/vim-hug-neovim-rpc'
endif
2018-01-29 13:50:57 +01:00
call vundle#end()
set background=dark
2017-09-27 16:16:35 +02:00
colorscheme solarized
call togglebg#map("<F5>")
2013-08-29 11:30:40 +02:00
let load_doxygen_syntax = 1
2019-01-17 08:06:18 +01:00
let g:airline_theme='solarized'
let g:airline_solarized_bg='dark'
2019-04-03 13:18:18 +02:00
let g:airline#extensions#tabline#enabled = 1
2019-06-13 06:07:40 +02:00
let g:deoplete#enable_at_startup = 1
2019-12-14 06:11:07 +01:00
let g:deoplete#sources#clang#libclang_path = '/usr/lib/llvm-default/lib/libclang.so.1'
let g:deoplete#sources#clang#clang_header = '/usr/lib/llvm-default/lib/clang/default/include'
2020-03-24 20:50:40 +01:00
let g:gutentags_generate_on_new = 1
let g:gutentags_generate_on_missing = 1
let g:gutentags_generate_on_write = 1
let g:gutentags_generate_on_empty_buffer = 0
"let g:gutentags_cache_dir = expand('~/.cache/neovim/gutentags')
let g:gutentags_ctags_extra_args = [
\ '--tag-relative=yes',
\ '--quiet=yes',
\ '--c++-kinds=+UA',
\ '--fields=+SailmnKz',
\ '--extras=+qf',
\ '--exclude=@.gitignore',
\ ]
let g:gutentags_ctags_exclude = [
\ '*-lock.json',
\ '*.bak',
\ '*.cache',
\ '*.hg',
\ '*.lock',
\ '*.map',
\ '*.tmp',
\ '*/tests/*',
\ '.git',
\ '.tags*',
\ 'CMakeCache.txt',
\ 'CMakeFiles',
\ 'CMakeLists.txt.user',
\ 'CMakeScripts',
\ 'CTestTestfile.cmake',
\ 'Makefile',
\ 'Testing',
\ 'cmake_install.cmake',
\ 'compile_commands.json',
\ 'docs',
\ 'install_manifest.txt',
\ 'bin',
\ 'build',
\ ]
2020-01-17 08:17:10 +01:00
call deoplete#custom#var('omni', 'functions', {'lua': 'xolox#lua#omnifunc',})
2013-08-29 11:30:40 +02:00
set encoding=utf-8
set icon
set smartcase
set spelllang=de,en
set softtabstop=4
set tabstop=4
set nowrap
set number
set foldmethod=indent
set foldnestmax=10
2013-08-30 14:50:02 +02:00
set nofoldenable
2020-01-17 08:17:10 +01:00
"set nomodeline
set listchars=eol,tab:\»\ ,trail:~,extends:>,precedes:<,nbsp:+
2014-01-28 15:43:06 +01:00
set list
2019-08-19 08:51:39 +02:00
set tags+=$HOME/.cache/cpp_tags
" Fast split/window navigation with <Ctrl-hjkl>
noremap <C-h> <C-w><C-h>
noremap <C-j> <C-w><C-j>
noremap <C-k> <C-w><C-k>
noremap <C-l> <C-w><C-l>
"
tnoremap <C-h> <C-w><C-h>
tnoremap <C-j> <C-w><C-j>
tnoremap <C-k> <C-w><C-k>
tnoremap <C-l> <C-w><C-l>
"
inoremap <C-h> <C-o><C-w><C-h>
inoremap <C-j> <C-o><C-w><C-j>
inoremap <C-k> <C-o><C-w><C-k>
inoremap <C-l> <C-o><C-w><C-l>
" Folding toggle
2018-09-28 16:29:24 +02:00
inoremap <F9> <C-O>za
nnoremap <F9> za
onoremap <F9> <C-C>za
vnoremap <F9> zf
2019-02-07 10:46:59 +01:00
map <C-n> :NERDTreeToggle<CR>