wip
This commit is contained in:
parent
11968de4f8
commit
465ac45efc
1 changed files with 33 additions and 4 deletions
37
.vimrc
37
.vimrc
|
@ -1,3 +1,5 @@
|
||||||
|
" leader key
|
||||||
|
:let mapleader = ","
|
||||||
" vim statusline - kein plugin
|
" vim statusline - kein plugin
|
||||||
" https://shapeshed.com/vim-statuslines/
|
" https://shapeshed.com/vim-statuslines/
|
||||||
function! GitBranch()
|
function! GitBranch()
|
||||||
|
@ -37,6 +39,7 @@ Plugin 'VundleVim/Vundle.vim'
|
||||||
"Plugin 'matze/vim-move'
|
"Plugin 'matze/vim-move'
|
||||||
Plugin 'sheerun/vim-polyglot'
|
Plugin 'sheerun/vim-polyglot'
|
||||||
Plugin 'Xuyuanp/nerdtree-git-plugin'
|
Plugin 'Xuyuanp/nerdtree-git-plugin'
|
||||||
|
Plugin 'jeetsukumaran/vim-buffergator'
|
||||||
Plugin 'mhinz/vim-signify'
|
Plugin 'mhinz/vim-signify'
|
||||||
Plugin 'ctrlpvim/ctrlp.vim'
|
Plugin 'ctrlpvim/ctrlp.vim'
|
||||||
Plugin 'lifepillar/vim-solarized8'
|
Plugin 'lifepillar/vim-solarized8'
|
||||||
|
@ -76,10 +79,38 @@ autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTr
|
||||||
\ quit | endif
|
\ quit | endif
|
||||||
"
|
"
|
||||||
" Tastenkürzel
|
" Tastenkürzel
|
||||||
nmap <C-t> :tabnew<CR>:NERDTreeFind<CR>
|
"nmap <C-t> :tabnew<CR>:NERDTreeFind<CR>
|
||||||
" erstellt neuen tab und öffnet den open-dialog
|
" 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 <C-t> :enew<cr>
|
||||||
|
"
|
||||||
|
"" Move to the next buffer
|
||||||
|
nmap <C-l> :bnext<CR>
|
||||||
|
|
||||||
|
" Move to the previous buffer
|
||||||
|
nmap <C-h> :bprevious<CR>
|
||||||
|
"
|
||||||
|
"" Close the current buffer and move to the previous one
|
||||||
|
" This replicates the idea of closing a tab
|
||||||
|
nmap <C>bq :bp <BAR> bd #<CR>
|
||||||
|
"
|
||||||
|
"" Show all open buffers and their status
|
||||||
|
nmap <C>bl :ls<CR>"
|
||||||
|
" "
|
||||||
|
" "
|
||||||
|
" "
|
||||||
|
" "
|
||||||
|
"
|
||||||
|
"" nerdtree-git-plugin
|
||||||
let g:NERDTreeGitStatusIndicatorMapCustom = {
|
let g:NERDTreeGitStatusIndicatorMapCustom = {
|
||||||
\ 'Modified' :'*',
|
\ 'Modified' :'*',
|
||||||
\ 'Staged' :'+',
|
\ 'Staged' :'+',
|
||||||
|
@ -99,9 +130,7 @@ let g:NERDTreeGitStatusIndicatorMapCustom = {
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
"
|
"
|
||||||
" allgemeine Optionen
|
" allgemeine Optionen
|
||||||
set number
|
|
||||||
set showcmd
|
set showcmd
|
||||||
set showtabline=2 " zeigt immer die 'tabline'
|
|
||||||
set showbreak=+++
|
set showbreak=+++
|
||||||
set textwidth=100
|
set textwidth=100
|
||||||
set showmatch
|
set showmatch
|
||||||
|
|
Loading…
Reference in a new issue