2018-01-29 13:50:57 +01:00
|
|
|
set nocompatible
|
|
|
|
filetype off
|
2021-05-25 09:00:01 +02:00
|
|
|
let g:polyglot_disabled = ['sensible'] " we disable vim-sensible from polyglot, as we want the real deal from tpope
|
2018-01-29 13:50:57 +01:00
|
|
|
|
|
|
|
" 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'
|
2020-03-03 08:04:11 +01:00
|
|
|
" load sensible defaults first
|
|
|
|
Plugin 'tpope/vim-sensible'
|
|
|
|
|
2023-01-24 14:46:56 +01:00
|
|
|
Plugin 'APZelos/blamer.nvim'
|
2019-03-01 09:19:05 +01:00
|
|
|
Plugin 'airblade/vim-gitgutter'
|
2020-01-17 08:17:10 +01:00
|
|
|
Plugin 'Chiel92/vim-autoformat'
|
2023-03-10 13:31:42 +01:00
|
|
|
Plugin 'editorconfig/editorconfig-vim'
|
2023-04-05 19:13:49 +02:00
|
|
|
Plugin 'junegunn/fzf'
|
|
|
|
Plugin 'junegunn/fzf.vim'
|
2021-12-17 07:26:45 +01:00
|
|
|
Plugin 'junegunn/goyo.vim'
|
|
|
|
Plugin 'junegunn/limelight.vim'
|
2020-10-13 06:02:22 +02:00
|
|
|
Plugin 'frankier/neovim-colors-solarized-truecolor-only'
|
2019-06-12 08:31:36 +02:00
|
|
|
Plugin 'mhinz/vim-startify'
|
2020-11-02 14:25:59 +01:00
|
|
|
Plugin 'preservim/nerdtree'
|
2020-10-13 06:02:22 +02:00
|
|
|
Plugin 'sheerun/vim-polyglot'
|
2019-03-01 09:19:05 +01:00
|
|
|
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'
|
2019-03-01 09:19:05 +01:00
|
|
|
Plugin 'wincent/terminus'
|
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'
|
2024-10-22 10:07:49 +02:00
|
|
|
else
|
|
|
|
Plugin 'mfussenegger/nvim-dap'
|
|
|
|
Plugin 'mfussenegger/nvim-lint'
|
|
|
|
Plugin 'mhartington/formatter.nvim'
|
|
|
|
Plugin 'nvim-neotest/nvim-nio'
|
|
|
|
Plugin 'rcarriga/nvim-dap-ui'
|
|
|
|
" the following order is important
|
|
|
|
Plugin 'williamboman/mason.nvim'
|
|
|
|
Plugin 'williamboman/mason-lspconfig.nvim'
|
|
|
|
Plugin 'neovim/nvim-lspconfig'
|
2020-11-11 12:41:33 +01:00
|
|
|
endif
|
2018-01-29 13:50:57 +01:00
|
|
|
call vundle#end()
|
|
|
|
|
2022-01-02 10:19:15 +01:00
|
|
|
augroup XML
|
|
|
|
autocmd!
|
|
|
|
autocmd FileType xml let g:xml_syntax_folding=1
|
|
|
|
autocmd FileType xml setlocal foldmethod=syntax
|
|
|
|
autocmd FileType xml :syntax on
|
|
|
|
autocmd FileType xml :%foldopen!
|
|
|
|
augroup END
|
|
|
|
|
2024-02-05 09:57:10 +01:00
|
|
|
if $VIM_COLORSCHEME == "light"
|
2022-10-08 13:22:18 +02:00
|
|
|
set background=light
|
|
|
|
endif
|
2023-01-24 14:46:56 +01:00
|
|
|
set termguicolors
|
2017-09-27 16:16:35 +02:00
|
|
|
colorscheme solarized
|
2024-02-05 09:57:10 +01:00
|
|
|
call togglebg#map("<Leader>t")
|
2013-08-29 11:30:40 +02:00
|
|
|
let load_doxygen_syntax = 1
|
2022-01-19 09:41:38 +01:00
|
|
|
let g:airline_powerline_fonts = 1
|
|
|
|
if !exists('g:airline_symbols')
|
|
|
|
let g:airline_symbols = {}
|
|
|
|
endif
|
|
|
|
let g:airline_symbols.colnr = ' C'
|
2019-01-17 08:06:18 +01:00
|
|
|
let g:airline_theme='solarized'
|
2019-04-03 13:18:18 +02:00
|
|
|
let g:airline#extensions#tabline#enabled = 1
|
2024-10-22 10:07:49 +02:00
|
|
|
let g:blamer_enabled = 1
|
2023-01-24 14:46:56 +01:00
|
|
|
let g:blamer_date_format = '%c'
|
|
|
|
let g:blamer_delay = 500
|
|
|
|
let g:blamer_prefix = ' > '
|
2021-05-07 13:05:08 +02:00
|
|
|
let g:gitgutter_highlight_lines = 1
|
2020-11-02 14:25:59 +01:00
|
|
|
let g:gitgutter_highlight_linenrs = 1
|
2023-01-20 14:42:18 +01:00
|
|
|
let g:goyo_width = 120
|
2020-11-11 12:41:33 +01:00
|
|
|
let g:startify_fortune_use_unicode = 1
|
|
|
|
let g:startify_session_autoload = 1
|
|
|
|
let g:startify_session_persistence = 1
|
2013-08-29 11:30:40 +02:00
|
|
|
set encoding=utf-8
|
|
|
|
set icon
|
|
|
|
set smartcase
|
|
|
|
set spelllang=de,en
|
2022-10-08 15:54:45 +02:00
|
|
|
set shiftwidth=4
|
2013-08-29 11:30:40 +02:00
|
|
|
set tabstop=4
|
2024-10-14 09:10:54 +02:00
|
|
|
set linebreak
|
|
|
|
set breakindent
|
|
|
|
" set colorcolumn=75
|
2021-09-28 19:42:12 +02:00
|
|
|
highlight ColorColumn guibg=Black ctermbg=0
|
|
|
|
set wrap
|
2013-08-29 11:30:40 +02:00
|
|
|
set number
|
2020-11-11 14:29:39 +01:00
|
|
|
set foldmethod=syntax
|
2013-08-29 11:30:40 +02:00
|
|
|
set foldnestmax=10
|
2021-02-09 10:27:42 +01:00
|
|
|
set foldlevelstart=1
|
2020-03-03 08:04:11 +01:00
|
|
|
set listchars=eol:¶,tab:\»\ ,trail:~,extends:>,precedes:<,nbsp:+
|
2014-01-28 15:43:06 +01:00
|
|
|
set list
|
2021-05-07 13:05:08 +02:00
|
|
|
set updatetime=750
|
2019-08-19 08:51:39 +02:00
|
|
|
|
2019-04-03 13:27:24 +02:00
|
|
|
" 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>
|
2023-01-24 14:46:56 +01:00
|
|
|
nnoremap <Leader>b :BlamerToggle<CR>
|
2021-12-17 07:26:45 +01:00
|
|
|
nnoremap <Leader>g :Goyo<CR>
|
2023-01-20 14:42:18 +01:00
|
|
|
nnoremap <Leader>l :Limelight!!<CR>
|
2021-12-17 07:26:45 +01:00
|
|
|
|
|
|
|
" Activate Limelight when Goyo is entered
|
|
|
|
autocmd! User GoyoEnter Limelight
|
|
|
|
autocmd! User GoyoLeave Limelight!
|