From 36f4b9ee145bd656e70058ddc28a59c822bcb007 Mon Sep 17 00:00:00 2001 From: Blallo Date: Tue, 27 Sep 2022 18:06:26 +0200 Subject: [PATCH] Bindings and syntax highlight change --- vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index ac09b1f..4c941a3 100644 --- a/vimrc +++ b/vimrc @@ -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 b :Gblame nnoremap :FZF nnoremap f :Buffers nnoremap :Files -nnoremap :Rg +nnoremap :Rg nnoremap k :exe "Rg " . expand("") nnoremap s :call Fzf_dev() nnoremap c :Commits nnoremap b :Git blame +nnoremap gh :exe "Git log -L:" . expand("") . ":" . expand("%") nnoremap :silent! nohls:call clearmatches() nnoremap :bnext nnoremap \ :bprev