From a2bcd231ed83009235e3d3e6256fb626ad163dd9 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Tue, 10 Jul 2018 22:44:15 +0200 Subject: [PATCH] Map toggletagbar to ,t --- .vim/vimrc | 61 +++++++++++++++++++++++++++--------------------------- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/.vim/vimrc b/.vim/vimrc index 3078e49..a97869b 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -101,30 +101,12 @@ highlight LineNr ctermfg=grey " grep set grepprg=ag\ --vimgrep\ --skip-vcs-ignores\ --path-to-ignore\ ~/.ignore\ --cpp\ --cc set grepformat^=%f:%l:%c:%m " file:line:coloumn:message +nnoremap * :grep \| copen -let mapleader = "," - -" Normal mode Mappings -nnoremap * :silent grep \| copen -nnoremap -nnoremap -nnoremap -nnoremap -nnoremap :bnext -nnoremap :bprev -nnoremap + :exe "resize " . (winheight(0) * 3/2) -nnoremap - :exe "resize " . (winheight(0) * 2/3) -nnoremap :nohlsearch:echo - -" Insert mode Mappings -inoremap u - -" Command mode Mappings - -" Command aliases -cnoreabbrev w!! w !sudo tee "%" - -" Commands +" Netrw +let g:netrw_liststyle=3 +let g:netrw_banner = 0 +let g:netrw_sort_sequence = '[\/]$,*' " Plugins @@ -133,6 +115,7 @@ packadd ale " Tagbar packadd tagbar +nnoremap t :TagbarToggle " Fugitive packadd vim-fugitive @@ -143,19 +126,16 @@ packadd vim-gtags " Unimpaired packadd vim-unimpaired -" Netrw -let g:netrw_liststyle=3 -let g:netrw_banner = 0 -let g:netrw_sort_sequence = '[\/]$,*' - " Ranger packadd ranger.vim packadd bclose.vim let g:ranger_replace_netrw = 1 +nnoremap e :Ranger " Airline packadd vim-airline let g:airline#extensions#tabline#enabled = 1 +let g:airline#extensions#tabline#formatter = 'unique_tail_improved' " Editorconfig packadd editorconfig-vim @@ -169,6 +149,7 @@ let g:ctrlp_map = 'p' let g:ctrlp_cmd = 'CtrlP' let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard'] "let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' +nnoremap p :CtrlP nnoremap b :CtrlPBuffer nnoremap m :CtrlPMRU @@ -176,6 +157,26 @@ nnoremap m :CtrlPMRU packadd matchit +let mapleader = "," + +" Normal mode Mappings +nnoremap +nnoremap +nnoremap +nnoremap +nnoremap :bnext +nnoremap :bprev +nnoremap + :exe "resize " . (winheight(0) * 3/2) +nnoremap - :exe "resize " . (winheight(0) * 2/3) +nnoremap :nohlsearch:echo + +" Insert mode Mappings +inoremap u + +" Command mode Mappings + +" Command aliases +cnoreabbrev w!! w !sudo tee "%" " autocommands augroup filetype @@ -203,8 +204,8 @@ augroup vimrc au bufwritepost ~/.vim/vimrc.local source % augroup END -" local + +" local settings if filereadable(expand('~/.vim/vimrc.local')) source ~/.vim/vimrc.local endif - -- 2.43.0