Bindings and syntax highlight change

This commit is contained in:
sfigato 2022-09-27 18:06:26 +02:00
parent d3ab3269c0
commit 36f4b9ee14
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

6
vimrc
View File

@ -135,6 +135,9 @@ if !empty(glob(s:info_filename)) && !filewritable(s:info_filename)
echoerr 'The .viminfo file cannot be written to!'
endif
""" Set dockerfile syntax
autocmd BufNewFile,BufRead Dockerfile* set ft=Dockerfile
""" keybindings
@ -156,11 +159,12 @@ nnoremap <leader>b :Gblame<CR>
nnoremap <C-p> :FZF<CR>
nnoremap <leader>f :Buffers<CR>
nnoremap <C-F> :Files<CR>
nnoremap <C-\> :Rg<CR>
nnoremap <C-g> :Rg<CR>
nnoremap <leader>k :exe "Rg " . expand("<cword>")<cr>
nnoremap <leader>s :call Fzf_dev()<CR>
nnoremap <leader>c :Commits<CR>
nnoremap <leader>b :Git blame<CR>
nnoremap <leader>gh :exe "Git log -L:" . expand("<cword>") . ":" . expand("%")<cr>
nnoremap <leader><esc> :silent! nohls<CR>:call clearmatches()<CR>
nnoremap <leader><Tab> :bnext<CR>
nnoremap <leader>\ :bprev<CR>