vim: shortcut entfernt
This commit is contained in:
parent
a55532682d
commit
8d64ff691e
1 changed files with 22 additions and 2 deletions
24
.vimrc
24
.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 <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
|
||||
|
|
Loading…
Reference in a new issue