dotfiles/.vimrc
2020-07-23 10:29:05 +02:00

88 lines
2.1 KiB
VimL

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'
Plugin 'airblade/vim-gitgutter'
Plugin 'altercation/vim-colors-solarized'
Plugin 'mhinz/vim-startify'
Plugin 'cespare/vim-toml'
Plugin 'ludovicchabant/vim-gutentags'
Plugin 'scrooloose/nerdtree'
Plugin 'sakhnik/nvim-gdb'
Plugin 'suan/vim-instant-markdown'
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-sleuth'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'vim-scripts/nginx.vim'
Plugin 'wincent/terminus'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'Valloric/YouCompleteMe'
call vundle#end()
filetype plugin indent on
syntax enable
if has('gui_running')
set background=light
set gfn=Hack\ Regular\ 9
else
set background=dark
endif
colorscheme solarized
call togglebg#map("<F5>")
let load_doxygen_syntax = 1
let g:airline_theme='solarized'
let g:airline_solarized_bg='dark'
let g:airline#extensions#tabline#enabled = 1
let g:ycm_autoclose_preview_window_after_completion = 1
let g:gutentags_cache_dir = '~/.cache/gutentags'
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
set nofoldenable
set nomodeline
set ruler
set listchars=eol,tab:\»\ ,trail:~,extends:>,precedes:<
set list
filetype plugin indent on
" Fast tab navigation
nnoremap <C-t> :tabnew<CR>
nnoremap <C-d> :tabclose<CR>
"
inoremap <C-t> <Esc>:tabnew<CR>
inoremap <C-d> <Esc>:tabclose<CR>
" 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
inoremap <F9> <C-O>za
nnoremap <F9> za
onoremap <F9> <C-C>za
vnoremap <F9> zf
map <C-n> :NERDTreeToggle<CR>