From d7b8f98131457a62e5c629861fde691416de8bea Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Tue, 10 Jul 2018 20:06:03 +0200 Subject: [PATCH] =?utf8?q?Buffer=20expl=C3=B8rer=20cmd's?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .vim/vimrc | 46 +++++++++++++++++++--------------------------- 1 file changed, 19 insertions(+), 27 deletions(-) diff --git a/.vim/vimrc b/.vim/vimrc index 8f5ea33..3078e49 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -98,15 +98,6 @@ let &t_EI.="\e[1 q" let &t_te.="\e[0 q" highlight LineNr ctermfg=grey -" make -"set makeprg=cmake\ --build\ . -"set makeprg=msbuild -"set errorformat=\ %#%f(%l):\ %m " Visual studio 2013 -"set errorformat=%.%#>\ %#%f(%l)\ :\ %m " Visual studio 2008 -"set makeprg=vim-iarbuild.cmd " IAR compiler -"set errorformat=%f(%l)\ :\ %m -set makeprg=doxygen - " grep set grepprg=ag\ --vimgrep\ --skip-vcs-ignores\ --path-to-ignore\ ~/.ignore\ --cpp\ --cc set grepformat^=%f:%l:%c:%m " file:line:coloumn:message @@ -115,13 +106,12 @@ let mapleader = "," " Normal mode Mappings nnoremap * :silent grep \| copen -nnoremap t :tags nnoremap nnoremap nnoremap nnoremap nnoremap :bnext -nnoremap :bNext +nnoremap :bprev nnoremap + :exe "resize " . (winheight(0) * 3/2) nnoremap - :exe "resize " . (winheight(0) * 2/3) nnoremap :nohlsearch:echo @@ -175,40 +165,42 @@ let g:editorconfig_core_mode = "python_builtin" " CtrlP packadd ctrlp.vim -let g:ctrlp_map = '' +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 b :CtrlPBuffer nnoremap m :CtrlPMRU +" matchit +packadd matchit -" autocommands -autocmd bufreadpost quickfix nnoremap + +" autocommands augroup filetype - autocmd! - autocmd! bufnewfile,buffilepre,bufread *.md set filetype=markdown - autocmd bufnewfile,buffilepre,bufread *.gradle set filetype=groovy - autocmd bufnewfile,buffilepre,bufread *.json set filetype=json - autocmd bufnewfile,buffilepre,bufread *.yml set filetype=yaml + au! + au bufnewfile,buffilepre,bufread *.md set filetype=markdown + au bufnewfile,buffilepre,bufread *.gradle set filetype=groovy + au bufnewfile,buffilepre,bufread *.json set filetype=json + au bufnewfile,buffilepre,bufread *.yml set filetype=yaml augroup END augroup saveall - autocmd! - autocmd focuslost * wall + au! + au focuslost * wall augroup END augroup numbertoggle - autocmd! - autocmd bufenter,focusgained,insertleave * set relativenumber - autocmd bufleave,focuslost,insertenter * set norelativenumber + au! + au bufenter,focusgained,insertleave * set relativenumber + au bufleave,focuslost,insertenter * set norelativenumber augroup END augroup vimrc - autocmd bufwritepost ~/.vim/gvimrc source % - autocmd bufwritepost ~/.vim/vimrc source % - autocmd bufwritepost ~/.vim/vimrc.local source % + au bufwritepost ~/.vim/gvimrc source % + au bufwritepost ~/.vim/vimrc source % + au bufwritepost ~/.vim/vimrc.local source % augroup END " local -- 2.43.0