let g:dotfiles_vim = expand(':p:h') let g:vimrcfile = expand(':p') execute 'source ' . g:dotfiles_vim . '/default.vim' execute 'source ' . g:dotfiles_vim . '/packages.vim' let mapleader=' ' execute ':nnoremap ev :vsplit '. g:vimrcfile. '' nnoremap sv :so $MYVIMRC " === COLORS === set background=dark set cursorline let g:gruvbox_italic=1 augroup colors au! au colorscheme * hi SpecialKey ctermfg=1 au colorscheme * hi CursorLine ctermbg=16 au colorscheme * hi SignColumn ctermbg='None' augroup END colorscheme gruvbox " === OTHER DISPLAY OPTIONS === set list set listchars=tab:→\ ,trail:␣,nbsp:⋅ set noruler set laststatus=2 " === WINDOW NAVIGATION === nnoremap h nnoremap j nnoremap k nnoremap l set number set relativenumber " === REMAPPINGS FOR SWEDISH KEYBOARD === nnoremap ö : nnoremap - ' nnoremap _ ` nnoremap nnoremap g g nnoremap , xnoremap % " Mappings for unimpaired'''''' nmap å [ nmap ¨ ] omap å [ omap ¨ ] xmap å [ xmap ¨ ] noremap åå [[ noremap ¨¨ ]] " === SEARCH OPTIONS === set ignorecase set smartcase set incsearch set showmatch set hlsearch nnoremap :noh noremap / /\v nnoremap * * " disable search highlighting after sourcing vimrc noh set expandtab set tabstop=2 set shiftwidth=2 set softtabstop=2 set smartindent set noswapfile set hidden " === PLUGIN MAPPINGS === nnoremap § :NERDTreeToggle set wildignore=*.o,*.d let NERDTreeIgnore=['\.o$', '\.d$', '\~$']