This commit is contained in:
Michael Grote 2021-05-27 21:47:49 +02:00
parent 200746fb43
commit 890d59528e
2 changed files with 21 additions and 6 deletions

View file

@ -2,4 +2,4 @@
name = Michael Grote name = Michael Grote
email = michael.grote@posteo.de email = michael.grote@posteo.de
[credential] [credential]
helper = store helper = store

25
.vimrc
View file

@ -7,6 +7,9 @@ set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin('~/.vim/plugged') call vundle#begin('~/.vim/plugged')
" Let Vundle manage Vundle " Let Vundle manage Vundle
Plugin 'VundleVim/Vundle.vim' Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'matze/vim-move'
Plugin 'sheerun/vim-polyglot' Plugin 'sheerun/vim-polyglot'
Plugin 'ctrlpvim/ctrlp.vim' Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'lifepillar/vim-solarized8' Plugin 'lifepillar/vim-solarized8'
@ -14,6 +17,7 @@ Plugin 'Yggdroot/indentLine'
Plugin 'tpope/vim-fugitive' Plugin 'tpope/vim-fugitive'
Plugin 'jiangmiao/auto-pairs' Plugin 'jiangmiao/auto-pairs'
Plugin 'preservim/nerdtree' Plugin 'preservim/nerdtree'
Plugin 'unkiwii/vim-nerdtree-sync'
" Install: " Install:
" vim +PluginInstall +qall " vim +PluginInstall +qall
" oder " oder
@ -25,17 +29,29 @@ let g:AutoPairsShortcutToggle = '<C-P>'
" Toogle Auto-Pairs mit Strg+P " Toogle Auto-Pairs mit Strg+P
" zur Autovervollständigung von Klammern " zur Autovervollständigung von Klammern
" "
" NERDtree " NERDtree + nerdtree-sync
"https://github.com/preservim/nerdtree
let NERDTreeShowHidden = 1 " Show hidden files let NERDTreeShowHidden = 1 " Show hidden files
let NERDTreeShowLineNumbers = 0 " Hide line numbers let NERDTreeShowLineNumbers = 0 " Hide line numbers
let NERDTreeMinimalMenu = 1 " Use the minimal menu (m) let NERDTreeMinimalMenu = 1 " Use the minimal menu (m)
let NERDTreeWinSize = 31 " Set panel width to 31 columns let NERDTreeWinSize = 31 " Set panel width to 31 columns
nmap <F2> :NERDTreeToggle<CR> " ruft NERDtree mit F2 auf nmap <F2> :NERDTreeToggle<CR> " ruft NERDtree mit F2 auf
autocmd StdinReadPre * let s:std_in=1 " Start NERDTree. If a file is specified, move the cursor to its window. " Start NERDTree. If a file is specified, move the cursor to its window.
autocmd VimEnter * NERDTree | if argc() > 0 || exists("s:std_in") | wincmd p | endif " Start NERDTree. If a file is specified, move the cursor to its window. autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * NERDTree | if argc() > 0 || exists("s:std_in") | wincmd p | endif
let g:nerdtree_sync_cursorline = 1 " highlight the file in tree
" open the existing NERDTree on each new tab.
autocmd BufWinEnter * silent NERDTreeMirror
" "
" exit Vim if NERDTree is the only window left.
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() |
\ quit | endif
"
" vim-move
" Tastenkürzel " Tastenkürzel
nmap <C-t> :tabnew<CR> nmap <C-t> :tabnew<CR>:NERDTreeFind<CR>
" erstellt neuen tab und öffnet den open-dialog " erstellt neuen tab und öffnet den open-dialog
" "
" indentLine " indentLine
@ -89,4 +105,3 @@ let g:ctrlp_map = '<c-f>' "aufruf mit strg+f
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'