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

86 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 'cespare/vim-toml'
Plugin 'ludovicchabant/vim-gutentags'
Plugin 'mhinz/vim-startify'
Plugin 'sakhnik/nvim-gdb'
Plugin 'scrooloose/nerdtree'
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'
if has('nvim')
Plugin 'Shougo/deoplete.nvim'
else
Plugin 'ajh17/VimCompletesMe'
endif
call vundle#end()
filetype plugin indent on
syntax enable
set background=dark
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:deoplete#enable_at_startup = 1
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
set tags+=$HOME/.cpp_tags
" 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>