From c843291b864ac2dd30edbf3e5e6cfe7914d772c4 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 31 Aug 2021 12:58:50 +0200 Subject: [PATCH] vim: Plugins ausgebaut --- .vimrc | 36 ++---------------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) diff --git a/.vimrc b/.vimrc index aec328e..a71f03e 100644 --- a/.vimrc +++ b/.vimrc @@ -11,18 +11,12 @@ Plugin 'VundleVim/Vundle.vim' Plugin 'itchyny/lightline.vim' " languagepack Plugin 'sheerun/vim-polyglot' -" buffer wechseln -Plugin 'jeetsukumaran/vim-buffergator' " fuzzy finder Plugin 'ctrlpvim/ctrlp.vim' " git integration G: Plugin 'tpope/vim-fugitive' -" git integration -Plugin 'jreybert/vimagit' " auto einrueckung Plugin 'tpope/vim-sleuth' -" zeilen ein/auskommentieren -Plugin 'tpope/vim-commentary' call vundle#end() @@ -34,7 +28,7 @@ set visualbell set ruler set undolevels=1000 set backspace=indent,eol,start - +set hidden " ermögliche das bearbiete buffer in der hintergrund können set ignorecase " Ignore case in search patterns. set smartcase " Override the 'ignorecase' option if the search pattern contains upper case characters. @@ -47,15 +41,8 @@ set gdefault " global bei suche immer mit an set incsearch " While typing a search command, show immediately where the so far typed pattern matches. set number " Show line numbers. -"https://jeffkreeftmeijer.com/vim-number/ -set number relativenumber -augroup numbertoggle - autocmd! - autocmd BufEnter,FocusGained,InsertLeave * set relativenumber - autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber -augroup END " toggle linenumbers -nmap :set norelativenumber!:set nonu! +nmap :set nonu! syntax on " Enable syntax highlighting set shiftwidth=4 " Number of spaces to use for each step of (auto)indent. @@ -88,22 +75,6 @@ let g:lightline = { \ }, \ } -" buffergator -" 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. -" https://medium.com/usevim/vim-101-set-hidden-f78800142855 -set hidden -" öffne buffergator drawer horizontal unten -" https://github.com/jeetsukumaran/vim-buffergator/blob/master/doc/buffergator.txt -let g:buffergator_viewport_split_policy = 'B' -" gibt an wie hoch der drawer sein soll -let g:buffergator_hsplit_size = '10' -" Move to the next buffer -nmap :bnext -" Move to the previous buffer -nmap :bprevious - " ripgrep und ctrlp @@ -120,9 +91,6 @@ set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' " stelle standard keybinding um let g:ctrlp_map = '' -" vimagit -" https://github.com/jreybert/vimagit#mappings -nmap m :Magit " Kommandovervollständigung " https://www.reddit.com/r/vim/comments/oo9gms/any_way_to_get_vim_to_not_defaulting_to_the_first/h5wygix/?context=8&depth=9