vim: shortcut entfernt

This commit is contained in:
Michael Grote 2021-11-19 07:50:05 +01:00
parent a55532682d
commit 8d64ff691e

24
.vimrc
View file

@ -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 <C-m> <Plug>MarkdownPreviewToggle
" ### Keybindings
" deaktiviere Ex-Mode keybinding
:nnoremap Q <Nop>
" Ctrl+S zum speichern
nmap <C-s> :w<CR>
" ctrl+W zum schließen
nmap <C-w> :q<CR>
" ctrl+P: set paste
nmap <C-p> :set paste!<CR>
" ctrl+t fuer neuen tab