From 8d64ff691e3b6ac966431b3b4c27e66e07c61494 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 19 Nov 2021 07:50:05 +0100 Subject: [PATCH] vim: shortcut entfernt --- .vimrc | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index 3fc0b03..49cfd63 100644 --- a/.vimrc +++ b/.vimrc @@ -97,13 +97,33 @@ let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' " stelle standard keybinding um let g:ctrlp_map = '' let g:ctrlp_extensions = ['line', 'undo'] + +" ### lightline/statusline +" blende insert/visual/... in der commandline aus, steht in lightline +set noshowmode +set laststatus=2 +let g:lightline = { + \ 'active': { + \ 'left': [ [ 'mode', 'paste' ], + \ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ] + \ }, + \ 'component_function': { + \ 'gitbranch': 'FugitiveHead' + \ }, + \ } +" https://shapeshed.com/vim-statuslines/ +function! GitBranch() + return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'") +endfunction + +" ### markdown-preview +nmap MarkdownPreviewToggle + " ### Keybindings " deaktiviere Ex-Mode keybinding :nnoremap Q " Ctrl+S zum speichern nmap :w -" ctrl+W zum schließen -nmap :q " ctrl+P: set paste nmap :set paste! " ctrl+t fuer neuen tab