From 465ac45efcec5c089c294c2b4b34df7515a9fc98 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 28 May 2021 08:51:12 +0200 Subject: [PATCH 1/5] wip --- .vimrc | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/.vimrc b/.vimrc index 5a3799e..76d7973 100644 --- a/.vimrc +++ b/.vimrc @@ -1,3 +1,5 @@ +" leader key +:let mapleader = "," " vim statusline - kein plugin " https://shapeshed.com/vim-statuslines/ function! GitBranch() @@ -37,6 +39,7 @@ Plugin 'VundleVim/Vundle.vim' "Plugin 'matze/vim-move' Plugin 'sheerun/vim-polyglot' Plugin 'Xuyuanp/nerdtree-git-plugin' +Plugin 'jeetsukumaran/vim-buffergator' Plugin 'mhinz/vim-signify' Plugin 'ctrlpvim/ctrlp.vim' Plugin 'lifepillar/vim-solarized8' @@ -76,10 +79,38 @@ autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTr \ quit | endif " " Tastenkürzel -nmap :tabnew:NERDTreeFind +"nmap :tabnew:NERDTreeFind " erstellt neuen tab und öffnet den open-dialog " -" nerdtree-git-plugin +" buffers +" https://joshldavis.com/2014/04/05/vim-tab-madness-buffers-vs-tabs/ +" +" This allows buffers to be hidden if you've modified a buffer. +" " This is almost a must if you wish to use buffers in this way. +set hidden +" +"" To open a new empty buffer +" This replaces :tabnew which I used to bind to this mapping +nmap :enew +" +"" Move to the next buffer +nmap :bnext + +" Move to the previous buffer + nmap :bprevious +" +"" Close the current buffer and move to the previous one +" This replicates the idea of closing a tab + nmap bq :bp bd # +" +"" Show all open buffers and their status +nmap bl :ls" +" " +" " +" " +" " +" +"" nerdtree-git-plugin let g:NERDTreeGitStatusIndicatorMapCustom = { \ 'Modified' :'*', \ 'Staged' :'+', @@ -99,9 +130,7 @@ let g:NERDTreeGitStatusIndicatorMapCustom = { filetype plugin indent on " " allgemeine Optionen -set number set showcmd -set showtabline=2 " zeigt immer die 'tabline' set showbreak=+++ set textwidth=100 set showmatch From 76c2741a9c6cc0eaa6c7a387863d0ace01508e77 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 28 May 2021 09:19:06 +0200 Subject: [PATCH 2/5] git aliase --- .gitconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitconfig b/.gitconfig index 39064b6..c1bbc4f 100644 --- a/.gitconfig +++ b/.gitconfig @@ -13,3 +13,5 @@ remote = remote -v fetchp = fetch --prune cline = clone + stagep = stage -p + staus = status From 16579be0fcf5446a8278aa799db5483b4954fd1b Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 28 May 2021 09:19:23 +0200 Subject: [PATCH 3/5] wip --- .vimrc | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/.vimrc b/.vimrc index 76d7973..e208ad3 100644 --- a/.vimrc +++ b/.vimrc @@ -33,10 +33,7 @@ set rtp+=~/.vim/bundle/Vundle.vim " Download plug-ins to the ~/.vim/plugged/ directory call vundle#begin('~/.vim/plugged') " Let Vundle manage Vundle -Plugin 'VundleVim/Vundle.vim' -"Plugin 'vim-airline/vim-airline' -"Plugin 'vim-airline/vim-airline-themes' -"Plugin 'matze/vim-move' +Plugin 'VundleVim/Vundle.vim' "muss immer der erste eintrag sein Plugin 'sheerun/vim-polyglot' Plugin 'Xuyuanp/nerdtree-git-plugin' Plugin 'jeetsukumaran/vim-buffergator' @@ -45,7 +42,6 @@ Plugin 'ctrlpvim/ctrlp.vim' Plugin 'lifepillar/vim-solarized8' Plugin 'Yggdroot/indentLine' Plugin 'tpope/vim-fugitive' -"Plugin 'ryanoasis/vim-devicons' Plugin 'jiangmiao/auto-pairs' Plugin 'preservim/nerdtree' Plugin 'unkiwii/vim-nerdtree-sync' @@ -79,7 +75,7 @@ autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTr \ quit | endif " " Tastenkürzel -"nmap :tabnew:NERDTreeFind +" nmap :tabnew:NERDTreeFind " erstellt neuen tab und öffnet den open-dialog " " buffers @@ -89,7 +85,7 @@ autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTr " " This is almost a must if you wish to use buffers in this way. set hidden " -"" To open a new empty buffer +" To open a new empty buffer " This replaces :tabnew which I used to bind to this mapping nmap :enew " @@ -97,20 +93,16 @@ nmap :enew nmap :bnext " Move to the previous buffer - nmap :bprevious +nmap :bprevious " -"" Close the current buffer and move to the previous one +" Close the current buffer and move to the previous one " This replicates the idea of closing a tab - nmap bq :bp bd # +nmap :bp bd # " "" Show all open buffers and their status -nmap bl :ls" -" " -" " -" " -" " +nmap :BuffergatorToggle" " -"" nerdtree-git-plugin +" nerdtree-git-plugin let g:NERDTreeGitStatusIndicatorMapCustom = { \ 'Modified' :'*', \ 'Staged' :'+', @@ -174,8 +166,6 @@ let g:ctrlp_map = '' "aufruf mit strg+f " https://github.com/ctrlpvim/ctrlp.vim set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows -" airline -let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' From 88ca93a9a5f7e18751ba07162b9f8ad33429f917 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 28 May 2021 09:23:42 +0200 Subject: [PATCH 4/5] wip --- .vimrc | 3 --- 1 file changed, 3 deletions(-) diff --git a/.vimrc b/.vimrc index e208ad3..dc6d87d 100644 --- a/.vimrc +++ b/.vimrc @@ -99,9 +99,6 @@ nmap :bprevious " This replicates the idea of closing a tab nmap :bp bd # " -"" Show all open buffers and their status -nmap :BuffergatorToggle" -" " nerdtree-git-plugin let g:NERDTreeGitStatusIndicatorMapCustom = { \ 'Modified' :'*', From 0aea4725b517925bb9f2162ebf193a5c255ae32c Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 28 May 2021 09:24:32 +0200 Subject: [PATCH 5/5] wip --- .vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index dc6d87d..9b700f3 100644 --- a/.vimrc +++ b/.vimrc @@ -97,7 +97,7 @@ nmap :bprevious " " Close the current buffer and move to the previous one " This replicates the idea of closing a tab -nmap :bp bd # +nmap :bp bd # " " nerdtree-git-plugin let g:NERDTreeGitStatusIndicatorMapCustom = {